add put endpoints openapi
This commit is contained in:
@@ -32,6 +32,24 @@ paths:
|
|||||||
$ref: '#/components/schemas/Weapon'
|
$ref: '#/components/schemas/Weapon'
|
||||||
operationId: get-weapon-list
|
operationId: get-weapon-list
|
||||||
description: ''
|
description: ''
|
||||||
|
put:
|
||||||
|
summary: ''
|
||||||
|
operationId: put-weapons
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/WeaponID'
|
||||||
|
'201':
|
||||||
|
description: Created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/WeaponID'
|
||||||
|
security:
|
||||||
|
- server_token: []
|
||||||
/maps/:
|
/maps/:
|
||||||
get:
|
get:
|
||||||
summary: List Maps
|
summary: List Maps
|
||||||
@@ -47,6 +65,30 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Map'
|
$ref: '#/components/schemas/Map'
|
||||||
operationId: get-map-list
|
operationId: get-map-list
|
||||||
|
put:
|
||||||
|
summary: ''
|
||||||
|
operationId: put-maps
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/MapID'
|
||||||
|
'201':
|
||||||
|
description: Created
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/MapID'
|
||||||
|
security:
|
||||||
|
- server_token: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
example: mp_angel_city
|
||||||
/players:
|
/players:
|
||||||
get:
|
get:
|
||||||
summary: List Players
|
summary: List Players
|
||||||
@@ -91,6 +133,13 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/Server'
|
$ref: '#/components/schemas/Server'
|
||||||
operationId: get-server-list
|
operationId: get-server-list
|
||||||
|
post:
|
||||||
|
summary: ''
|
||||||
|
operationId: post-servers
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
description: Register a new server
|
||||||
'/servers/{serverId}':
|
'/servers/{serverId}':
|
||||||
parameters:
|
parameters:
|
||||||
- $ref: '#/components/parameters/serverId'
|
- $ref: '#/components/parameters/serverId'
|
||||||
|
|||||||
Reference in New Issue
Block a user