From 1ec913c9ce2c03e426e133ce437a94141f594b2c Mon Sep 17 00:00:00 2001 From: "nathan.tienyou@viacesi.fr" Date: Thu, 2 Mar 2023 14:50:02 +0100 Subject: [PATCH] add put endpoints openapi --- reference/OpenAPI.yml | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/reference/OpenAPI.yml b/reference/OpenAPI.yml index 79c356a..e66c766 100644 --- a/reference/OpenAPI.yml +++ b/reference/OpenAPI.yml @@ -32,6 +32,24 @@ paths: $ref: '#/components/schemas/Weapon' operationId: get-weapon-list 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/: get: summary: List Maps @@ -47,6 +65,30 @@ paths: items: $ref: '#/components/schemas/Map' 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: get: summary: List Players @@ -91,6 +133,13 @@ paths: items: $ref: '#/components/schemas/Server' operationId: get-server-list + post: + summary: '' + operationId: post-servers + responses: + '200': + description: OK + description: Register a new server '/servers/{serverId}': parameters: - $ref: '#/components/parameters/serverId'