You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
542 B
Plaintext
29 lines
542 B
Plaintext
2 years ago
|
syntax = "v1"
|
||
|
|
||
|
info(
|
||
|
title: "type title here"
|
||
|
desc: "type desc here"
|
||
|
author: "type author here"
|
||
|
email: "type email here"
|
||
|
version: "type version here"
|
||
|
)
|
||
|
|
||
|
|
||
|
type request {
|
||
|
// TODO: add members here and delete this comment
|
||
|
}
|
||
|
|
||
|
type response {
|
||
|
// TODO: add members here and delete this comment
|
||
|
}
|
||
|
|
||
|
@server(
|
||
|
jwt: Auth
|
||
|
group: template
|
||
|
)
|
||
|
service template {
|
||
|
@doc "foo" /*foo*/
|
||
|
@handler handlerName // TODO: replace handler name and delete this comment
|
||
|
get /users/id/:userId (request) returns (response)
|
||
|
}
|