2022-01-12 06:14:04 +01:00
|
|
|
openapi: 3.0.1
|
|
|
|
info:
|
|
|
|
title: Test API
|
|
|
|
version: 1.0.0
|
|
|
|
servers:
|
|
|
|
- url: "http://localhost:9991/api/v1"
|
|
|
|
paths:
|
|
|
|
/test1:
|
|
|
|
get:
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
|
|
top_array:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
oneOf:
|
|
|
|
- type: object
|
|
|
|
properties:
|
|
|
|
obj:
|
|
|
|
oneOf:
|
|
|
|
- type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
- type: object
|
|
|
|
properties:
|
|
|
|
str3:
|
|
|
|
type: string
|
|
|
|
- type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
str1:
|
2020-07-01 21:19:49 +02:00
|
|
|
type: string
|
2022-01-12 06:14:04 +01:00
|
|
|
str2:
|
2020-07-01 21:19:49 +02:00
|
|
|
type: string
|
2022-01-12 06:14:04 +01:00
|
|
|
/test2:
|
|
|
|
get:
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
|
|
top_array:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
oneOf:
|
|
|
|
- type: object
|
|
|
|
properties:
|
|
|
|
obj:
|
|
|
|
oneOf:
|
|
|
|
- type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
- type: object
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
|
|
str3:
|
|
|
|
type: string
|
|
|
|
- type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
str1:
|
|
|
|
type: string
|
|
|
|
str2:
|
|
|
|
type: string
|
|
|
|
/test3:
|
|
|
|
get:
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
|
|
top_array:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
oneOf:
|
|
|
|
- type: object
|
|
|
|
properties:
|
|
|
|
obj:
|
|
|
|
oneOf:
|
|
|
|
- type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
- type: object
|
|
|
|
- type: array
|
|
|
|
items:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
str1:
|
|
|
|
type: string
|
|
|
|
str2:
|
2020-07-01 21:19:49 +02:00
|
|
|
type: string
|