|
118 | 118 | property: 'roles', |
119 | 119 | type: 'array', |
120 | 120 | items: new OA\Items( |
121 | | - required: ['uuid'], |
| 121 | + required: ['id'], |
122 | 122 | properties: [ |
123 | | - new OA\Property(property: 'uuid', type: 'string'), |
| 123 | + new OA\Property(property: 'id', type: 'string'), |
124 | 124 | ], |
125 | 125 | ), |
126 | 126 | ), |
|
157 | 157 | * @see DeleteAdminResourceHandler::handle() |
158 | 158 | */ |
159 | 159 | #[OA\Delete( |
160 | | - path: '/admin/{uuid}', |
161 | | - description: 'Authenticated (super)admin deletes an admin account identified by its UUID', |
| 160 | + path: '/admin/{id}', |
| 161 | + description: 'Authenticated (super)admin deletes an admin account identified by its id', |
162 | 162 | summary: 'Admin deletes an admin account', |
163 | 163 | security: [['AuthToken' => []]], |
164 | 164 | tags: ['Admin'], |
165 | 165 | parameters: [ |
166 | 166 | new OA\Parameter( |
167 | | - name: 'uuid', |
168 | | - description: 'Admin UUID', |
| 167 | + name: 'id', |
| 168 | + description: 'Admin id', |
169 | 169 | in: 'path', |
170 | 170 | required: true, |
171 | 171 | schema: new OA\Schema(type: 'string'), |
|
187 | 187 | * @see GetAdminResourceHandler::handle() |
188 | 188 | */ |
189 | 189 | #[OA\Get( |
190 | | - path: '/admin/{uuid}', |
191 | | - description: 'Authenticated (super)admin fetches an admin account identified by its UUID', |
| 190 | + path: '/admin/{id}', |
| 191 | + description: 'Authenticated (super)admin fetches an admin account identified by its id', |
192 | 192 | summary: 'Admin fetches an admin account', |
193 | 193 | security: [['AuthToken' => []]], |
194 | 194 | tags: ['Admin'], |
195 | 195 | parameters: [ |
196 | 196 | new OA\Parameter( |
197 | | - name: 'uuid', |
198 | | - description: 'Admin UUID', |
| 197 | + name: 'id', |
| 198 | + description: 'Admin id', |
199 | 199 | in: 'path', |
200 | 200 | required: true, |
201 | 201 | schema: new OA\Schema(type: 'string'), |
|
218 | 218 | * @see PatchAdminResourceHandler::handle() |
219 | 219 | */ |
220 | 220 | #[OA\Patch( |
221 | | - path: '/admin/{uuid}', |
| 221 | + path: '/admin/{id}', |
222 | 222 | description: 'Authenticated (super)admin updates an existing admin account', |
223 | 223 | summary: 'Admin updates an admin account', |
224 | 224 | security: [['AuthToken' => []]], |
|
236 | 236 | property: 'roles', |
237 | 237 | type: 'array', |
238 | 238 | items: new OA\Items( |
239 | | - required: ['uuid'], |
| 239 | + required: ['id'], |
240 | 240 | properties: [ |
241 | | - new OA\Property(property: 'uuid', type: 'string'), |
| 241 | + new OA\Property(property: 'id', type: 'string'), |
242 | 242 | ], |
243 | 243 | ), |
244 | 244 | ), |
|
249 | 249 | tags: ['Admin'], |
250 | 250 | parameters: [ |
251 | 251 | new OA\Parameter( |
252 | | - name: 'uuid', |
253 | | - description: 'Admin UUID', |
| 252 | + name: 'id', |
| 253 | + description: 'Admin id', |
254 | 254 | in: 'path', |
255 | 255 | required: true, |
256 | 256 | schema: new OA\Schema(type: 'string'), |
|
352 | 352 | * @see GetAdminRoleResourceHandler::handle() |
353 | 353 | */ |
354 | 354 | #[OA\Get( |
355 | | - path: '/admin/role/{uuid}', |
356 | | - description: 'Authenticated (super)admin fetches an admin role identified by its UUID', |
| 355 | + path: '/admin/role/{id}', |
| 356 | + description: 'Authenticated (super)admin fetches an admin role identified by its id', |
357 | 357 | summary: 'Admin fetches an admin role', |
358 | 358 | security: [['AuthToken' => []]], |
359 | 359 | tags: ['AdminRole'], |
360 | 360 | parameters: [ |
361 | 361 | new OA\Parameter( |
362 | | - name: 'uuid', |
363 | | - description: 'Admin role UUID', |
| 362 | + name: 'id', |
| 363 | + description: 'Admin role id', |
364 | 364 | in: 'path', |
365 | 365 | required: true, |
366 | 366 | schema: new OA\Schema(type: 'string'), |
|
418 | 418 | property: 'roles', |
419 | 419 | type: 'array', |
420 | 420 | items: new OA\Items( |
421 | | - required: ['uuid'], |
| 421 | + required: ['id'], |
422 | 422 | properties: [ |
423 | | - new OA\Property(property: 'uuid', type: 'string'), |
| 423 | + new OA\Property(property: 'id', type: 'string'), |
424 | 424 | ], |
425 | 425 | ), |
426 | 426 | ), |
|
444 | 444 | #[OA\Schema( |
445 | 445 | schema: 'Admin', |
446 | 446 | properties: [ |
447 | | - new OA\Property(property: 'uuid', type: 'string', example: '1234abcd-abcd-4321-12ab-123456abcdef'), |
| 447 | + new OA\Property(property: 'id', type: 'string', example: '1234abcd-abcd-4321-12ab-123456abcdef'), |
448 | 448 | new OA\Property(property: 'identity', type: 'string'), |
449 | 449 | new OA\Property(property: 'firstName', type: 'string'), |
450 | 450 | new OA\Property(property: 'lastName', type: 'string'), |
|
454 | 454 | type: 'array', |
455 | 455 | items: new OA\Items( |
456 | 456 | properties: [ |
457 | | - new OA\Property(property: 'uuid', type: 'string'), |
| 457 | + new OA\Property(property: 'id', type: 'string'), |
458 | 458 | new OA\Property(property: 'name', type: 'string', example: AdminRoleEnum::Admin->value), |
459 | 459 | ], |
460 | 460 | type: 'object', |
|
489 | 489 | #[OA\Schema( |
490 | 490 | schema: 'AdminRole', |
491 | 491 | properties: [ |
492 | | - new OA\Property(property: 'uuid', type: 'string', example: '1234abcd-abcd-4321-12ab-123456abcdef'), |
| 492 | + new OA\Property(property: 'id', type: 'string', example: '1234abcd-abcd-4321-12ab-123456abcdef'), |
493 | 493 | new OA\Property(property: 'name', type: 'string', example: AdminRoleEnum::Admin->value), |
494 | 494 | new OA\Property( |
495 | 495 | property: '_links', |
|
0 commit comments