1
0

api.tpl 519 B

123456789101112131415161718192021222324
  1. syntax = "v1"
  2. info (
  3. title: // TODO: add title
  4. desc: // TODO: add description
  5. author: "{{.gitUser}}"
  6. email: "{{.gitEmail}}"
  7. )
  8. type request {
  9. // TODO: add members here and delete this comment
  10. }
  11. type response {
  12. // TODO: add members here and delete this comment
  13. }
  14. service {{.serviceName}} {
  15. @handler GetUser // TODO: set handler name and delete this comment
  16. get /users/id/:userId(request) returns(response)
  17. @handler CreateUser // TODO: set handler name and delete this comment
  18. post /users/create(request)
  19. }