File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ use App\Controller\CreateBookPublication;
103
103
#[ApiResource]
104
104
#[Get]
105
105
#[Post(
106
- name: 'post_publication ',
106
+ name: 'publication ',
107
107
uriTemplate: '/books/{id}/publication',
108
108
controller: CreateBookPublication::class
109
109
)]
@@ -173,7 +173,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
173
173
#[ApiResource]
174
174
#[Get]
175
175
#[Post(
176
- name: 'post_publication ',
176
+ name: 'publication ',
177
177
uriTemplate: '/books/{id}/publication',
178
178
controller: CreateBookPublication::class,
179
179
normalizationContext: ['groups' => 'publication']
@@ -252,7 +252,7 @@ use App\Controller\CreateBookPublication;
252
252
#[ApiResource]
253
253
#[Get]
254
254
#[Post(
255
- name: 'post_publication ',
255
+ name: 'publication ',
256
256
uriTemplate: '/books/{id}/publication',
257
257
controller: CreateBookPublication::class,
258
258
read: false
@@ -332,7 +332,7 @@ use ApiPlatform\Metadata\Post;
332
332
333
333
#[ApiResource]
334
334
#[Get]
335
- #[Post(name: 'post_publication ', routeName: 'book_post_publication')]
335
+ #[Post(name: 'publication ', routeName: 'book_post_publication')]
336
336
#[Post(name: 'book_post_discontinuation')]
337
337
class Book
338
338
{
You can’t perform that action at this time.
0 commit comments