apigen/test/api.yaml

472 lines
9.3 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
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
SomeAPI2:
name: SomeAPI2
desc: SomeAPI2
verb: DELETE
path: /someapi
perm: ASD
reqtype:
typename: crypto.Hash
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: true
raw: false
SomeAPI3:
name: SomeAPI3
desc: SomeAPI3
verb: GET
path: /raw
perm: ASD
reqtype:
typename: ""
ispointer: true
isarray: false
restype:
typename: ""
ispointer: false
isarray: true
raw: true
SomeGET:
name: SomeGET
desc: SomeGET
verb: GET
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
SomePUT:
name: SomePUT
desc: SomePUT
verb: PUT
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
namespace: goapi
imports:
context: context
crypto: crypto
gin: github.com/gin-gonic/gin
http: net/http
time: time
used_imports_types:
crypto: crypto
time: time
used_imports_functions:
crypto: crypto
http: net/http
sorted_paths:
- path: /raw
map_verbs:
GET:
verb: GET
method:
name: SomeAPI3
desc: SomeAPI3
verb: GET
path: /raw
perm: ASD
reqtype:
typename: ""
ispointer: true
isarray: false
restype:
typename: ""
ispointer: false
isarray: true
raw: true
sorted_verbs:
- verb: GET
method:
name: SomeAPI3
desc: SomeAPI3
verb: GET
path: /raw
perm: ASD
reqtype:
typename: ""
ispointer: true
isarray: false
restype:
typename: ""
ispointer: false
isarray: true
raw: true
- path: /someapi
map_verbs:
DELETE:
verb: DELETE
method:
name: SomeAPI2
desc: SomeAPI2
verb: DELETE
path: /someapi
perm: ASD
reqtype:
typename: crypto.Hash
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: true
raw: false
GET:
verb: GET
method:
name: SomeGET
desc: SomeGET
verb: GET
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
POST:
verb: POST
method:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
PUT:
verb: PUT
method:
name: SomePUT
desc: SomePUT
verb: PUT
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
sorted_verbs:
- verb: DELETE
method:
name: SomeAPI2
desc: SomeAPI2
verb: DELETE
path: /someapi
perm: ASD
reqtype:
typename: crypto.Hash
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: true
raw: false
- verb: GET
method:
name: SomeGET
desc: SomeGET
verb: GET
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
- verb: POST
method:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
- verb: PUT
method:
name: SomePUT
desc: SomePUT
verb: PUT
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
paths:
/raw:
path: /raw
map_verbs:
GET:
verb: GET
method:
name: SomeAPI3
desc: SomeAPI3
verb: GET
path: /raw
perm: ASD
reqtype:
typename: ""
ispointer: true
isarray: false
restype:
typename: ""
ispointer: false
isarray: true
raw: true
sorted_verbs:
- verb: GET
method:
name: SomeAPI3
desc: SomeAPI3
verb: GET
path: /raw
perm: ASD
reqtype:
typename: ""
ispointer: true
isarray: false
restype:
typename: ""
ispointer: false
isarray: true
raw: true
/someapi:
path: /someapi
map_verbs:
DELETE:
verb: DELETE
method:
name: SomeAPI2
desc: SomeAPI2
verb: DELETE
path: /someapi
perm: ASD
reqtype:
typename: crypto.Hash
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: true
raw: false
GET:
verb: GET
method:
name: SomeGET
desc: SomeGET
verb: GET
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
POST:
verb: POST
method:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
PUT:
verb: PUT
method:
name: SomePUT
desc: SomePUT
verb: PUT
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
sorted_verbs:
- verb: DELETE
method:
name: SomeAPI2
desc: SomeAPI2
verb: DELETE
path: /someapi
perm: ASD
reqtype:
typename: crypto.Hash
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: true
raw: false
- verb: GET
method:
name: SomeGET
desc: SomeGET
verb: GET
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
- verb: POST
method:
name: SomeAPI
desc: SomeAPI
verb: POST
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false
- verb: PUT
method:
name: SomePUT
desc: SomePUT
verb: PUT
path: /someapi
perm: ASD
reqtype:
typename: string
ispointer: false
isarray: false
restype:
typename: string
ispointer: false
isarray: false
raw: false