@@ -42,7 +42,7 @@ public function __construct(
4242
4343 #[Route('' , name: 'create ' , methods: ['POST ' ])]
4444 #[OA \Post(
45- path: '/api/v2/ administrators/attributes ' ,
45+ path: '/administrators/attributes ' ,
4646 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
4747 'Returns created admin attribute definition. ' ,
4848 summary: 'Create an admin attribute definition. ' ,
@@ -54,8 +54,8 @@ public function __construct(
5454 tags: ['admin-attributes ' ],
5555 parameters: [
5656 new OA \Parameter (
57- name: 'php-auth-pw ' ,
58- description: 'Session key obtained from login ' ,
57+ name: 'session ' ,
58+ description: 'Session ID obtained from authentication ' ,
5959 in: 'header ' ,
6060 required: true ,
6161 schema: new OA \Schema (
@@ -96,7 +96,7 @@ public function create(Request $request): JsonResponse
9696
9797 #[Route('/{definitionId} ' , name: 'update ' , requirements: ['definitionId ' => '\d+ ' ], methods: ['PUT ' ])]
9898 #[OA \Put(
99- path: '/api/v2/ administrators/attributes/{definitionId} ' ,
99+ path: '/administrators/attributes/{definitionId} ' ,
100100 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
101101 'Returns updated admin attribute definition. ' ,
102102 summary: 'Update an admin attribute definition. ' ,
@@ -115,8 +115,8 @@ public function create(Request $request): JsonResponse
115115 schema: new OA \Schema (type: 'string ' )
116116 ),
117117 new OA \Parameter (
118- name: 'php-auth-pw ' ,
119- description: 'Session key obtained from login ' ,
118+ name: 'session ' ,
119+ description: 'Session ID obtained from authentication ' ,
120120 in: 'header ' ,
121121 required: true ,
122122 schema: new OA \Schema (type: 'string ' )
@@ -163,15 +163,15 @@ public function update(
163163
164164 #[Route('/{definitionId} ' , name: 'delete ' , requirements: ['definitionId ' => '\d+ ' ], methods: ['DELETE ' ])]
165165 #[OA \Delete(
166- path: '/api/v2/ administrators/attributes/{definitionId} ' ,
166+ path: '/administrators/attributes/{definitionId} ' ,
167167 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
168168 'Deletes a single admin attribute definition. ' ,
169169 summary: 'Deletes an attribute definition. ' ,
170170 tags: ['admin-attributes ' ],
171171 parameters: [
172172 new OA \Parameter (
173- name: 'php-auth-pw ' ,
174- description: 'Session key obtained from login ' ,
173+ name: 'session ' ,
174+ description: 'Session ID ' ,
175175 in: 'header ' ,
176176 required: true ,
177177 schema: new OA \Schema (type: 'string ' )
@@ -217,18 +217,20 @@ public function delete(
217217
218218 #[Route('' , name: 'get_lists ' , methods: ['GET ' ])]
219219 #[OA \Get(
220- path: '/api/v2/ administrators/attributes ' ,
220+ path: '/administrators/attributes ' ,
221221 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
222222 'Returns a JSON list of all admin attribute definitions. ' ,
223223 summary: 'Gets a list of all admin attribute definitions. ' ,
224224 tags: ['admin-attributes ' ],
225225 parameters: [
226226 new OA \Parameter (
227- name: 'php-auth-pw ' ,
228- description: 'Session key obtained from login ' ,
227+ name: 'session ' ,
228+ description: 'Session ID obtained from authentication ' ,
229229 in: 'header ' ,
230230 required: true ,
231- schema: new OA \Schema (type: 'string ' )
231+ schema: new OA \Schema (
232+ type: 'string '
233+ )
232234 ),
233235 new OA \Parameter (
234236 name: 'after_id ' ,
@@ -284,7 +286,7 @@ public function getPaginated(Request $request): JsonResponse
284286
285287 #[Route('/{definitionId} ' , name: 'get_one ' , requirements: ['definitionId ' => '\d+ ' ], methods: ['GET ' ])]
286288 #[OA \Get(
287- path: '/api/v2/ administrators/attributes/{definitionId} ' ,
289+ path: '/administrators/attributes/{definitionId} ' ,
288290 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
289291 'Returns a single attribute with specified ID. ' ,
290292 summary: 'Gets attribute with specified ID. ' ,
@@ -298,8 +300,8 @@ public function getPaginated(Request $request): JsonResponse
298300 schema: new OA \Schema (type: 'string ' )
299301 ),
300302 new OA \Parameter (
301- name: 'php-auth-pw ' ,
302- description: 'Session key obtained from login ' ,
303+ name: 'session ' ,
304+ description: 'Session ID obtained from authentication ' ,
303305 in: 'header ' ,
304306 required: true ,
305307 schema: new OA \Schema (type: 'string ' )
0 commit comments