feat(goctl): Add api parser (#2585)
This commit is contained in:
28
tools/goctl/pkg/parser/api/scanner/test.api
Normal file
28
tools/goctl/pkg/parser/api/scanner/test.api
Normal file
@@ -0,0 +1,28 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user