1 | <?php |
||
31 | class SlideshowController extends Controller |
||
|
|||
32 | { |
||
33 | /** |
||
34 | * @Operation( |
||
35 | * tags={"slideshow"}, |
||
36 | * summary="List all slideshows", |
||
37 | * @SWG\Parameter( |
||
38 | * name="sorting", |
||
39 | * in="query", |
||
40 | * description="todo", |
||
41 | * required=false, |
||
42 | * type="string" |
||
43 | * ), |
||
44 | * @SWG\Response( |
||
45 | * response="200", |
||
46 | * description="Returned on success.", |
||
47 | * @SWG\Schema( |
||
48 | * type="array", |
||
49 | * @SWG\Items(ref=@Model(type=\SWP\Bundle\CoreBundle\Model\Slideshow::class, groups={"api"})) |
||
50 | * ) |
||
51 | * ) |
||
52 | * ) |
||
53 | * |
||
54 | * @Route("/api/{version}/content/slideshows/{articleId}", options={"expose"=true}, defaults={"version"="v2"}, methods={"GET"}, name="swp_api_slideshows_list") |
||
55 | */ |
||
56 | public function listAction(Request $request, string $articleId): ResourcesListResponseInterface |
||
68 | |||
69 | /** |
||
70 | * @Operation( |
||
71 | * tags={"slideshow"}, |
||
72 | * summary="Get single slideshow", |
||
73 | * @SWG\Response( |
||
74 | * response="200", |
||
75 | * description="Returned on success.", |
||
76 | * @Model(type=\SWP\Bundle\CoreBundle\Model\Slideshow::class, groups={"api"}) |
||
77 | * ) |
||
78 | * ) |
||
79 | * |
||
80 | * @Route("/api/{version}/content/slideshows/{articleId}/{id}", options={"expose"=true}, defaults={"version"="v2"}, methods={"GET"}, name="swp_api_get_slideshow", requirements={"id"="\d+"}) |
||
81 | */ |
||
82 | public function getAction($id, string $articleId): SingleResourceResponseInterface |
||
95 | |||
96 | private function findArticleOr404($id) |
||
104 | } |
||
105 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.