162 lines
4.7 KiB
JSON
162 lines
4.7 KiB
JSON
{
|
|
"profile": {
|
|
"database": "none",
|
|
"storage": "none",
|
|
"logOutput": "stderr",
|
|
"logFormat": "json"
|
|
},
|
|
"version": 2,
|
|
"module": "example.com/managed",
|
|
"entry": "api/managed.api",
|
|
"generated": {
|
|
"docs/openapi.json": "9eb707aefeefd3f4881c774534e2d143949c0edb1d8a4aabd762f978f6203df1",
|
|
"internal/handler/appGen.go": "dbadfb73165e0e6ef10e8277dd1b8a0edc2992dac3690d634808ac92829c2654",
|
|
"internal/handler/demo/handlersGen.go": "7a6f9d5e105e44b07196cc540cee3f0562d5f3d1c5f0bc094434db1064d0339c",
|
|
"internal/handler/openapiGen.go": "612920ed25e5dc7a4f673be56041d47b70aa3216707ff282e52dfe503c2d705a",
|
|
"internal/handler/responseGen.go": "84397a502bba4777ebfa6fae3d3bc418297acab4f26b04b42e3c31b36c735399",
|
|
"internal/handler/routesGen.go": "76c1a5b2644e75e56553dc6e9e862a63128d902dd94807ce7c8aee5491cd1e3e",
|
|
"internal/middleware/registryGen.go": "e5f47efa57a1432765ef3419bae59dbf3b4d55b3aac0a6c935ce7a52ba6b47f4",
|
|
"internal/types/typesGen.go": "7586e86fa5d67051283178cc578c890f6c02fd2d5c383170a71a39c2e77ce344",
|
|
"main.go": "09ae81857b806f3f7dca608399b1881d94bc9c4b2258e774e77d694fcadbab65"
|
|
},
|
|
"contract": {
|
|
"routes": {
|
|
"demo/callback": {
|
|
"method": "POST",
|
|
"path": "/callback",
|
|
"group": "demo",
|
|
"handler": "callback",
|
|
"signature": "Callback(context.Context, *httpx.Body) (*httpx.Stream, error)",
|
|
"bodyMode": "raw",
|
|
"produces": "text/plain",
|
|
"maxBodyBytes": 64
|
|
},
|
|
"demo/check": {
|
|
"method": "GET",
|
|
"path": "/check",
|
|
"group": "demo",
|
|
"handler": "check",
|
|
"signature": "Check(context.Context, *types.CheckReq) (*types.Receipt, error)",
|
|
"request": "CheckReq",
|
|
"response": "Receipt",
|
|
"types": {
|
|
"CheckReq": {
|
|
"fields": [
|
|
{
|
|
"name": "Kind",
|
|
"type": "string",
|
|
"tag": "form:\"kind,optional\""
|
|
}
|
|
]
|
|
},
|
|
"Receipt": {
|
|
"fields": [
|
|
{
|
|
"name": "Bytes",
|
|
"type": "int64",
|
|
"tag": "json:\"bytes\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"demo/download": {
|
|
"method": "GET",
|
|
"path": "/download",
|
|
"group": "demo",
|
|
"handler": "download",
|
|
"signature": "Download(context.Context) (*httpx.Stream, error)",
|
|
"produces": "application/octet-stream"
|
|
},
|
|
"demo/other": {
|
|
"method": "GET",
|
|
"path": "/other",
|
|
"group": "demo",
|
|
"handler": "other",
|
|
"signature": "Other(context.Context, *types.CheckReq) (*types.Receipt, error)",
|
|
"request": "CheckReq",
|
|
"response": "Receipt",
|
|
"types": {
|
|
"CheckReq": {
|
|
"fields": [
|
|
{
|
|
"name": "Kind",
|
|
"type": "string",
|
|
"tag": "form:\"kind,optional\""
|
|
}
|
|
]
|
|
},
|
|
"Receipt": {
|
|
"fields": [
|
|
{
|
|
"name": "Bytes",
|
|
"type": "int64",
|
|
"tag": "json:\"bytes\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"demo/rawJSON": {
|
|
"method": "GET",
|
|
"path": "/raw",
|
|
"group": "demo",
|
|
"handler": "rawJSON",
|
|
"signature": "RawJSON(context.Context) (*types.Receipt, error)",
|
|
"response": "Receipt",
|
|
"types": {
|
|
"Receipt": {
|
|
"fields": [
|
|
{
|
|
"name": "Bytes",
|
|
"type": "int64",
|
|
"tag": "json:\"bytes\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"demo/slow": {
|
|
"method": "GET",
|
|
"path": "/slow",
|
|
"group": "demo",
|
|
"handler": "slow",
|
|
"signature": "Slow(context.Context) (*types.Receipt, error)",
|
|
"response": "Receipt",
|
|
"types": {
|
|
"Receipt": {
|
|
"fields": [
|
|
{
|
|
"name": "Bytes",
|
|
"type": "int64",
|
|
"tag": "json:\"bytes\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"demo/upload": {
|
|
"method": "POST",
|
|
"path": "/upload",
|
|
"group": "demo",
|
|
"handler": "upload",
|
|
"signature": "Upload(context.Context, *httpx.Body) (*types.Receipt, error)",
|
|
"response": "Receipt",
|
|
"bodyMode": "multipart",
|
|
"maxBodyBytes": 2048,
|
|
"types": {
|
|
"Receipt": {
|
|
"fields": [
|
|
{
|
|
"name": "Bytes",
|
|
"type": "int64",
|
|
"tag": "json:\"bytes\""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|