2222use Symfony \Component \HttpFoundation \Response ;
2323use Symfony \Component \Routing \Attribute \Route ;
2424
25- #[Route('/subscribers/attribute-values ' , name: 'subscriber_attribute_value_ ' )]
25+ #[Route('/subscribers ' , name: 'subscriber_attribute_value_ ' )]
2626class SubscriberAttributeValueController extends BaseController
2727{
2828 private SubscriberAttributeManager $ attributeManager ;
@@ -44,16 +44,16 @@ public function __construct(
4444 }
4545
4646 #[Route(
47- path: '/{subscriberId}/{definitionId} ' ,
47+ path: '/{subscriberId}/attributes/ {definitionId} ' ,
4848 name: 'create ' ,
4949 requirements: ['subscriberId ' => '\d+ ' , 'definitionId ' => '\d+ ' ],
5050 methods: ['POST ' , 'PUT ' ]
5151 )]
5252 #[OA \Post(
53- path: '/api/v2/subscribers/attribute-values/ {subscriberId}/{definitionId} ' ,
53+ path: '/api/v2/subscribers/{subscriberId}/attributes /{definitionId} ' ,
5454 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
5555 'Returns created/updated subscriber attribute. ' ,
56- summary: 'Create/update a subscriber attribute. ' ,
56+ summary: 'Create/update a subscriber attribute value . ' ,
5757 requestBody: new OA \RequestBody (
5858 description: 'Pass parameters to create subscriber attribute. ' ,
5959 required: true ,
@@ -130,13 +130,13 @@ public function createOrUpdate(
130130 }
131131
132132 #[Route(
133- path: '/{subscriberId}/{definitionId} ' ,
133+ path: '/{subscriberId}/attributes/ {definitionId} ' ,
134134 name: 'delete ' ,
135135 requirements: ['subscriberId ' => '\d+ ' , 'definitionId ' => '\d+ ' ],
136136 methods: ['DELETE ' ]
137137 )]
138138 #[OA \Delete(
139- path: '/api/v2/subscribers/attribute-values/ {subscriberId}/{definitionId} ' ,
139+ path: '/api/v2/subscribers/{subscriberId}/attributes /{definitionId} ' ,
140140 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
141141 'Deletes a single subscriber attribute. ' ,
142142 summary: 'Deletes an attribute. ' ,
@@ -200,9 +200,9 @@ public function delete(
200200 return $ this ->json (null , Response::HTTP_NO_CONTENT );
201201 }
202202
203- #[Route('/{subscriberId} ' , name: 'get_list ' , requirements: ['subscriberId ' => '\d+ ' ], methods: ['GET ' ])]
203+ #[Route('/{subscriberId}/attributes ' , name: 'get_list ' , requirements: ['subscriberId ' => '\d+ ' ], methods: ['GET ' ])]
204204 #[OA \Get(
205- path: '/api/v2/subscribers/attribute-values/ {subscriberId} ' ,
205+ path: '/api/v2/subscribers/{subscriberId}/attributes ' ,
206206 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
207207 'Returns a JSON list of all subscriber attributes. ' ,
208208 summary: 'Gets a list of all subscriber attributes. ' ,
@@ -270,23 +270,23 @@ public function getPaginated(
270270
271271 return $ this ->json (
272272 $ this ->paginatedDataProvider ->getPaginatedList (
273- $ request ,
274- $ this ->normalizer ,
275- SubscriberAttributeValue::class,
276- $ filter
273+ request: $ request ,
274+ normalizer: $ this ->normalizer ,
275+ className: SubscriberAttributeValue::class,
276+ filter: $ filter
277277 ),
278278 Response::HTTP_OK
279279 );
280280 }
281281
282282 #[Route(
283- path: '/{subscriberId}/{definitionId} ' ,
283+ path: '/{subscriberId}/attributes/ {definitionId} ' ,
284284 name: 'get_one ' ,
285285 requirements: ['subscriberId ' => '\d+ ' , 'definitionId ' => '\d+ ' ],
286286 methods: ['GET ' ]
287287 )]
288288 #[OA \Get(
289- path: '/api/v2/subscribers/attribute-values/ {subscriberId}/{definitionId} ' ,
289+ path: '/api/v2/subscribers/{subscriberId}/attributes /{definitionId} ' ,
290290 description: '🚧 **Status: Beta** – This method is under development. Avoid using in production. ' .
291291 'Returns a single attribute. ' ,
292292 summary: 'Gets subscriber attribute. ' ,
0 commit comments