1234567891011121314151617181920212223242526272829 |
- type Foo {}
- @server(
- foo: foo
- bar: "bar"
- fooBar: "foo
- bar"
- )
- service foo-api {
- @doc("foo")
- @handler foo
- get /foo (Foo) returns (Foo)
- @handler bar
- post /foo (Foo)
- @handler fooBar
- post /foo/bar
- @server(
- handler: getFoo
- )
- post /foo/:id returns(Foo)
- }
- service foo-api {
- @doc(
- summary:"post foo"
- )
- @handler postFoo
- post /foo/bar/post (Foo)
- }
|