Changeset 462 for TFP-WebServer/WebServer/src/WebAPI/APIs
- Timestamp:
- Aug 14, 2023, 9:16:51 PM (16 months ago)
- Location:
- TFP-WebServer/WebServer/src/WebAPI/APIs
- Files:
-
- 7 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/WebAPI/APIs/Command.openapi.yaml
r460 r462 88 88 description: Simple style command result 89 89 90 CommandExecutedResponse: 91 type: object 92 properties: 93 data: 94 oneOf: 95 - $ref: '#/components/schemas/CommandExecutedResultFull' 96 - $ref: '#/components/schemas/CommandExecutedResultSimple' 97 meta: 98 $ref: './openapi.yaml#/components/schemas/ResultEnvelopeMeta' 99 required: 100 - data 101 - meta 90 102 91 103 requestBodies: … … 167 179 application/json: 168 180 schema: 169 oneOf: 170 - $ref: '#/components/schemas/CommandExecutedResultFull' 171 - $ref: '#/components/schemas/CommandExecutedResultSimple' 181 $ref: '#/components/schemas/CommandExecutedResponse' 172 182 text/plain: 173 183 schema: -
TFP-WebServer/WebServer/src/WebAPI/APIs/Permissions/Blacklist.openapi.yaml
r460 r462 42 42 type: object 43 43 properties: 44 x: 45 type: integer 44 bannedUntil: 45 type: string 46 format: date-time 47 banReason: 48 type: string 46 49 examples: 47 - -4348 y:49 type: integer50 - Cheating not allowed! 51 name: 52 type: string 50 53 examples: 51 - 842 52 icon: 53 type: string 54 format: uuid 55 examples: 56 - https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Blue_question_mark_icon.svg/1200px-Blue_question_mark_icon.svg.png 54 - TheFunPimp 57 55 required: 58 - x 59 - y 56 - bannedUntil 60 57 required: true 61 62 63 parameters:64 UserIdPathParameter:65 name: id66 in: path67 required: true68 schema:69 $ref: '#/components/schemas/TypeUserIdString'70 58 71 59 … … 80 68 responses: 81 69 200: 82 description: List of found markers70 description: List of blacklist entries 83 71 content: 84 72 application/json: … … 93 81 - data 94 82 - meta 83 403: 84 $ref: './openapi.yaml#/components/responses/Unauthorized' 85 security: 86 - apiTokenName: [ ] 87 apiTokenSecret: [ ] 88 - sessionCookie: [ ] 95 89 96 90 … … 119 113 operationId: blacklist.post.id 120 114 parameters: 121 - $ref: ' #/components/parameters/UserIdPathParameter'115 - $ref: './openapi.yaml#/components/parameters/UserIdPathParameter' 122 116 requestBody: 123 117 $ref: '#/components/requestBodies/BlacklistBodyIn' 124 118 responses: 125 119 201: 126 description: Marker with updated values120 description: Blacklist entry created or updated 127 121 $ref: './openapi.yaml#/components/responses/HttpEmptyEnvelopedResponse' 128 122 400: 129 description: >- 130 Invalid request body, errorCode will be one of 'NO_OR_INVALID_X', 131 'NO_OR_INVALID_Y' 123 description: Invalid request body, errorCode will be 'NO_OR_INVALID_BANNED_UNTIL' 132 124 $ref: './openapi.yaml#/components/responses/HttpEmptyEnvelopedResponse' 133 125 403: … … 145 137 operationId: blacklist.delete.id 146 138 parameters: 147 - $ref: ' #/components/parameters/UserIdPathParameter'139 - $ref: './openapi.yaml#/components/parameters/UserIdPathParameter' 148 140 responses: 149 141 204: 150 description: Deleted marker142 description: Deleted blacklist entry 151 143 $ref: './openapi.yaml#/components/responses/HttpEmptyEnvelopedResponse' 152 144 404: 153 description: Marker ID not found145 description: User ID not found 154 146 $ref: './openapi.yaml#/components/responses/HttpEmptyEnvelopedResponse' 155 147 403:
Note:
See TracChangeset
for help on using the changeset viewer.