Changeset 460 for TFP-WebServer/WebServer/src/WebAPI/APIs
- Timestamp:
- Aug 11, 2023, 6:29:09 PM (15 months ago)
- Location:
- TFP-WebServer/WebServer/src/WebAPI/APIs
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/WebAPI/APIs/OpenAPI.openapi.yaml
r459 r460 2 2 info: 3 3 title: OpenAPI 4 version: 14 version: '1' 5 5 6 6 … … 8 8 /api/OpenAPI/openapi.yaml: 9 9 get: 10 tags: 11 - Meta 12 summary: OpenAPI master document 13 description: Fetch the OpenAPI master document, referencing all the individual WebAPI specs 10 14 operationId: OpenAPI.openapi 11 15 responses: … … 14 18 application/json: {} 15 19 description: OpenAPI master document 20 /api/OpenAPI/{name}.openapi.yaml: 21 get: 16 22 tags: 17 23 - Meta 18 /api/OpenAPI/{name}.openapi.yaml:19 get:24 summary: OpenAPI spec for single API 25 description: Fetch the OpenAPI spec of a single WebAPI 20 26 operationId: OpenAPI.getAPI 21 27 parameters: … … 35 41 application/json: {} 36 42 description: No OpenAPI spec found for the API name 37 tags:38 - Meta -
TFP-WebServer/WebServer/src/WebAPI/APIs/Permissions/Blacklist.cs
r434 r460 100 100 } 101 101 102 bool validId = PlatformUserIdentifierAbs.TryFromCombinedString (id, out _userId); 103 if (!validId) { 102 if (PlatformUserIdentifierAbs.TryFromCombinedString (id, out _userId)) { 104 103 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, "INVALID_USER"); 104 return false; 105 105 } 106 106 107 return validId;107 return true; 108 108 } 109 109 -
TFP-WebServer/WebServer/src/WebAPI/APIs/WorldState/Animal.openapi.yaml
r459 r460 2 2 info: 3 3 title: Animal 4 version: 14 version: '1' 5 5 6 6 components: … … 10 10 properties: 11 11 id: 12 $ref: ' #/components/schemas/TypeEntityId'12 $ref: './openapi.yaml#/components/schemas/TypeEntityId' 13 13 name: 14 14 type: string … … 16 16 - animalStag 17 17 position: 18 $ref: ' #/components/schemas/TypeVector3i'18 $ref: './openapi.yaml#/components/schemas/TypeVector3i' 19 19 required: 20 20 - id … … 47 47 $ref: '#/components/schemas/AnimalList' 48 48 meta: 49 $ref: ' #/components/schemas/ResultEnvelopeMeta'49 $ref: './openapi.yaml#/components/schemas/ResultEnvelopeMeta' 50 50 required: 51 51 - data 52 52 - meta 53 53 403: 54 $ref: ' #/components/responses/Unauthorized'54 $ref: './openapi.yaml#/components/responses/Unauthorized' 55 55 security: 56 56 - apiTokenName: []
Note:
See TracChangeset
for help on using the changeset viewer.