apigen/test/goapi.yaml

100 lines
1.9 KiB
YAML

types:
AStr:
name: AStr
fields:
Arrofpstr:
type: string
array: true
tags:
json:
key: json
name: arrofpstr
opts:
- omitempty
City:
type: string
Country:
type: string
HouseNumber:
type: int64
IsCondo:
type: bool
Recursive:
map: true
mapkey: string
mapval: AStr
Some:
type: crypto.Decrypter
SomeWeirdTest:
type: string
tags:
json:
key: json
name: SUPERCALIFRAGILISPEALIDOUX
opts: []
When:
type: time.Time
methods:
SomeAPI:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
raw: false
reqtype:
typename: AStr
ispointer: true
isarray: false
restype:
typename: AStr
ispointer: true
isarray: false
namespace: goapi
imports:
context: context
crypto: crypto
time: time
used_imports_types:
crypto: crypto
time: time
used_imports_functions: {}
paths:
/someapi:
path: /someapi
map_verbs:
POST:
verb: POST
method:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
raw: false
reqtype:
typename: AStr
ispointer: true
isarray: false
restype:
typename: AStr
ispointer: true
isarray: false
sorted_verbs:
- verb: POST
method:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
raw: false
reqtype:
typename: AStr
ispointer: true
isarray: false
restype:
typename: AStr
ispointer: true
isarray: false