i2bill.api 560 B

1234567891011121314151617181920212223242526
  1. syntax = "v1"
  2. info(
  3. title: // TODO: add title
  4. desc: // TODO: add description
  5. author: "double.huang"
  6. email: "2637309949@qq.com"
  7. )
  8. type request {
  9. // TODO: add members here and delete this comment
  10. Id int64 `form:"id"`
  11. }
  12. type response {
  13. // TODO: add members here and delete this comment
  14. Id int64 `json:"id"`
  15. }
  16. service i2bill-api {
  17. @handler GetUser // TODO: set handler name and delete this comment
  18. get /users/id/:userId(request) returns(response)
  19. @handler CreateUser // TODO: set handler name and delete this comment
  20. post /users/create(request)
  21. }