-
-
Notifications
You must be signed in to change notification settings - Fork 499
/
gallery.xml
33 lines (33 loc) · 2.96 KB
/
gallery.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing https://symfony.com/schema/routing/routing-1.0.xsd">
<route id="get_galleries" path="/galleries.{_format}" methods="GET" controller="Sonata\MediaBundle\Controller\Api\GalleryController::getGalleriesAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="get_gallery" path="/galleries/{id}.{_format}" methods="GET" controller="Sonata\MediaBundle\Controller\Api\GalleryController::getGalleryAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="get_gallery_medias" path="/galleries/{id}/medias.{_format}" methods="GET" controller="Sonata\MediaBundle\Controller\Api\GalleryController::getGalleryMediasAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="get_gallery_galleryitems" path="/galleries/{id}/galleryitems.{_format}" methods="GET" controller="Sonata\MediaBundle\Controller\Api\GalleryController::getGalleryGalleryItemsAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="post_gallery" path="/galleries.{_format}" methods="POST" controller="Sonata\MediaBundle\Controller\Api\GalleryController::postGalleryAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="put_gallery" path="/galleries/{id}.{_format}" methods="PUT" controller="Sonata\MediaBundle\Controller\Api\GalleryController::putGalleryAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="post_gallery_media_galleryitem" path="/galleries/{galleryId}/media/{mediaId}/galleryitem.{_format}" methods="POST" controller="Sonata\MediaBundle\Controller\Api\GalleryController::postGalleryMediaGalleryItemAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="put_gallery_media_galleryitem" path="/galleries/{galleryId}/media/{mediaId}/galleryitem.{_format}" methods="PUT" controller="Sonata\MediaBundle\Controller\Api\GalleryController::putGalleryMediaGalleryItemAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="delete_gallery_media_galleryitem" path="/galleries/{galleryId}/media/{mediaId}/galleryitem.{_format}" methods="DELETE" controller="Sonata\MediaBundle\Controller\Api\GalleryController::deleteGalleryMediaGalleryItemAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
<route id="delete_gallery" path="/galleries/{id}.{_format}" methods="DELETE" controller="Sonata\MediaBundle\Controller\Api\GalleryController::deleteGalleryAction" format="json">
<requirement key="_format">json|xml|html</requirement>
</route>
</routes>