|
6 | 6 | app_name = 'api' |
7 | 7 |
|
8 | 8 | urlpatterns = format_suffix_patterns([ |
| 9 | + # API Root |
| 10 | + path('', view=views.api_root, name='api_root'), |
| 11 | + # Groups |
9 | 12 | path('groups/', include(arg=[ |
10 | 13 | path('<str:gid>/enable/', view=views.groups_enable, name='groups_enable'), |
11 | 14 | path('<str:gid>/disable/', view=views.groups_disable, name='groups_disable'), |
12 | 15 | path('<str:gid>/', view=views.groups_detail, name='groups_detail'), |
13 | 16 | path('', view=views.groups_list, name='groups_list'), |
14 | 17 | ])), |
| 18 | + # Users |
| 19 | + path('users/', include(arg=[ |
| 20 | + path('<str:uid>/enable/', view=views.users_enable, name='users_enable'), |
| 21 | + path('<str:uid>/disable/', view=views.users_disable, name='users_disable'), |
| 22 | + path('<str:uid>/', view=views.users_detail, name='users_detail'), |
| 23 | + path('', view=views.users_list, name='users_list'), |
| 24 | + ])), |
| 25 | + # Filters |
| 26 | + path('filters/', include(arg=[ |
| 27 | + path('<str:fid>/', view=views.filters_detail, name='filters_detail'), |
| 28 | + path('', view=views.filters_list, name='filters_list'), |
| 29 | + ])), |
| 30 | + # HTTP Client Connectors |
| 31 | + path('httpccm/', include(arg=[ |
| 32 | + path('<str:cid>/', view=views.httpccm_detail, name='httpccm_detail'), |
| 33 | + path('', view=views.httpccm_list, name='httpccm_list'), |
| 34 | + ])), |
| 35 | + # SMPP Client Connectors |
| 36 | + path('smppccm/', include(arg=[ |
| 37 | + path('<str:cid>/start/', view=views.smppccm_start, name='smppccm_start'), |
| 38 | + path('<str:cid>/stop/', view=views.smppccm_stop, name='smppccm_stop'), |
| 39 | + path('<str:cid>/', view=views.smppccm_detail, name='smppccm_detail'), |
| 40 | + path('', view=views.smppccm_list, name='smppccm_list'), |
| 41 | + ])), |
| 42 | + # MO Routers |
| 43 | + path('morouter/', include(arg=[ |
| 44 | + path('flush/', view=views.morouter_flush, name='morouter_flush'), |
| 45 | + path('<str:order>/', view=views.morouter_detail, name='morouter_detail'), |
| 46 | + path('', view=views.morouter_list, name='morouter_list'), |
| 47 | + ])), |
| 48 | + # MT Routers |
| 49 | + path('mtrouter/', include(arg=[ |
| 50 | + path('flush/', view=views.mtrouter_flush, name='mtrouter_flush'), |
| 51 | + path('<str:order>/', view=views.mtrouter_detail, name='mtrouter_detail'), |
| 52 | + path('', view=views.mtrouter_list, name='mtrouter_list'), |
| 53 | + ])), |
| 54 | + # Health Check |
15 | 55 | path('health_check', view=views.health_check, name="health_check") |
16 | 56 | ]) |
0 commit comments