Skip to content

Commit d95f48a

Browse files
committed
ISSUE-344: api doc
1 parent d93647d commit d95f48a

File tree

5 files changed

+5
-60
lines changed

5 files changed

+5
-60
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require": {
3333
"php": "^8.1",
34-
"phplist/core": "dev-ISSUE-337",
34+
"phplist/core": "dev-main",
3535
"friendsofsymfony/rest-bundle": "*",
3636
"symfony/test-pack": "^1.0",
3737
"symfony/process": "^6.4",

docs/.gitkeep

Whitespace-only changes.

openapi.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/Controller/ListController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ public function deleteList(
267267
return new JsonResponse(null, Response::HTTP_NO_CONTENT, [], false);
268268
}
269269

270-
#[Route('/lists/{id}/members', name: 'get_subscriber_from_list', methods: ['GET'])]
270+
#[Route('/lists/{id}/subscribers', name: 'get_subscriber_from_list', methods: ['GET'])]
271271
#[OA\Get(
272-
path: '/lists/{list}/members',
272+
path: '/lists/{list}/subscribers',
273273
description: 'Returns a JSON list of all subscribers for a subscriber list.',
274-
summary: 'Gets a list of all subscribers (members) of a subscriber list.',
274+
summary: 'Gets a list of all subscribers of a subscriber list.',
275275
tags: ['lists'],
276276
parameters: [
277277
new OA\Parameter(

src/Controller/SubscriberController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939

4040
#[Route('/subscribers', name: 'create_subscriber', methods: ['POST'])]
4141
#[OA\Post(
42-
path: '/subscriber',
42+
path: '/subscribers',
4343
description: 'Creates a new subscriber (if there is no subscriber with the given email address yet).',
4444
summary: 'Create a subscriber',
4545
requestBody: new OA\RequestBody(

0 commit comments

Comments
 (0)