test.api 542 B

12345678910111213141516171819202122232425262728
  1. syntax = "v1"
  2. info(
  3. title: "type title here"
  4. desc: "type desc here"
  5. author: "type author here"
  6. email: "type email here"
  7. version: "type version here"
  8. )
  9. type request {
  10. // TODO: add members here and delete this comment
  11. }
  12. type response {
  13. // TODO: add members here and delete this comment
  14. }
  15. @server(
  16. jwt: Auth
  17. group: template
  18. )
  19. service template {
  20. @doc "foo" /*foo*/
  21. @handler handlerName // TODO: replace handler name and delete this comment
  22. get /users/id/:userId (request) returns (response)
  23. }