apigen/test/goapi.yaml

100 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2021-11-28 22:08:32 +00:00
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
2021-03-22 02:08:04 +00:00
methods:
2021-11-28 22:08:32 +00:00
SomeAPI:
name: SomeAPI
desc: SomeAPI
verb: POST
2021-03-22 02:08:04 +00:00
path: /someapi
perm: ASD
2021-11-28 22:08:32 +00:00
raw: false
2021-03-22 02:08:04 +00:00
reqtype:
2021-11-28 22:08:32 +00:00
typename: AStr
ispointer: true
2021-03-22 02:08:04 +00:00
isarray: false
restype:
2021-11-28 22:08:32 +00:00
typename: AStr
ispointer: true
isarray: false
namespace: goapi
2021-03-22 02:08:04 +00:00
imports:
context: context
2021-11-28 22:08:32 +00:00
crypto: crypto
2021-03-22 02:08:04 +00:00
time: time
2021-11-28 22:08:32 +00:00
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