has_inline_no_exist_test.api 298 B

12345678910111213141516
  1. type Request struct {
  2. Inline
  3. Name string `path:"name,options=you|me"`
  4. }
  5. type Response struct {
  6. Message string `json:"message"` // message
  7. }
  8. service A-api {
  9. @doc ("helloworld")
  10. @server(
  11. handler: GreetHandler
  12. )
  13. get /greet/from/:name(Request) returns (Response)
  14. }