예제 #1
0
from clothstream.lib.rest import SharedAPIRootRouter
from .views import FavoritedItemCreate, FavoritedItemDestroy

router = SharedAPIRootRouter()
router.register(r'favorite-item/create', FavoritedItemCreate, base_name='favoriteditem-create')
router.register(r'favorite-item/delete', FavoritedItemDestroy, base_name='favoriteditem-delete')
예제 #2
0
from clothstream.lib.rest import SharedAPIRootRouter
from .views import UserProfileListRetrieve, UserProfileUpdate

router = SharedAPIRootRouter()
router.register(r'userprofile/update', UserProfileUpdate, base_name='userprofile-update')
router.register(r'userprofile', UserProfileListRetrieve, base_name='userprofile')
예제 #3
0
from clothstream.lib.rest import SharedAPIRootRouter
from .views import ItemStyleTagCreate, StyleTagList

router = SharedAPIRootRouter()
router.register(r'styletag-item/create', ItemStyleTagCreate, base_name='itemstyletag-create')
router.register(r'styletags', StyleTagList)
예제 #4
0
from clothstream.lib.rest import SharedAPIRootRouter
from .views import ItemViewSet

router = SharedAPIRootRouter()
router.register(r'items', ItemViewSet)
예제 #5
0
from clothstream.lib.rest import SharedAPIRootRouter
from .views import CollectionCreate, CollectionUpdate, CollectionListRetrieve, CollectionDestroy, \
    CollectedItemDestroy, CollectedItemCreate

router = SharedAPIRootRouter()
router.register(r'collections/create', CollectionCreate, base_name='collection-create')
router.register(r'collections/update', CollectionUpdate, base_name='collection-update')
router.register(r'collections/delete', CollectionDestroy, base_name='collection-delete')
router.register(r'collections', CollectionListRetrieve)
router.register(r'collecteditem/create', CollectedItemCreate, base_name='collecteditem-create')
router.register(r'collecteditem/delete', CollectedItemDestroy, base_name='collecteditem-delete')