Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

from django.conf.urls import include, url 

from rest_framework import routers 

from rest_framework.documentation import include_docs_urls 

 

from backend_app.viewsets import ALL_API_VIEWSETS, ALL_API_VIEW_VIEWSETS 

 

####### 

# Building the API routing 

####### 

 

urlpatterns = [url(r"^api-doc/", include_docs_urls(title="REX-DRI API"))] 

 

# router will hold all api related endpoints 

router = routers.DefaultRouter() 

 

for v in ALL_API_VIEWSETS + ALL_API_VIEW_VIEWSETS: 

router.register(v.end_point_route, v, str(v)) 

 

# Add all the endpoints for the base api 

urlpatterns.append(url(r"^api/", include(router.urls)))