bxcore.api 519 B

12345678910111213141516171819202122232425
  1. syntax = "v1"
  2. info (
  3. title: // TODO: add title
  4. desc: // TODO: add description
  5. author: "wangshan"
  6. email: "wangshan@topnet.net.cn"
  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 bxcore-api {
  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. }