service.api 205 B

123456789101112
  1. type Request {
  2. Name string `path:"name,options=you|me"`
  3. }
  4. type Response {
  5. Message string `json:"message"`
  6. }
  7. service service-api {
  8. @handler ServiceHandler
  9. get /from/:name(Request) returns (Response)
  10. }