Dirk Vogt | d134521 | 2016-09-14 14:31:45 +0200 | [diff] [blame] | 1 | from django.conf.urls import url, include |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 2 | from . import views |
Dirk Vogt | f2a3342 | 2016-10-11 17:17:26 +0200 | [diff] [blame^] | 3 | from . import rest_api_devices |
| 4 | from . import rest_api_crashreports |
Dirk Vogt | d134521 | 2016-09-14 14:31:45 +0200 | [diff] [blame] | 5 | |
Dirk Vogt | 05218ef | 2016-09-21 13:35:02 +0200 | [diff] [blame] | 6 | |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 7 | |
| 8 | urlpatterns = [ |
Dirk Vogt | f2a3342 | 2016-10-11 17:17:26 +0200 | [diff] [blame^] | 9 | |
| 10 | url(r'^api/v1/crashreports/$', rest_api_crashreports.ListCreateCrashReport.as_view(), name='api_v1_crashreports'), |
| 11 | # url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/$', views.index, name='api_v1_crashreports_single'), |
| 12 | # url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/logfiles/$', views.index, name='api_v1_crashreports_single_logfiles'), |
| 13 | # url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/logfiles/(?P<pk>[0-9]+)/$', views.index, name='api_v1_crashreports_single_logfiles_single'), |
| 14 | # |
| 15 | # url(r'^api/v1//logfiles/$',views.index, name='api_v1_logfiles'), |
| 16 | # url(r'^api/v1//logfiles/(?P<pk>[0-9]+)/$',views.index, name='api_v1_logfiles_single') |
| 17 | |
| 18 | url(r'^api/v1/devices/$', rest_api_devices.ListCreateDevices.as_view(), name='api_v1_list_devices'), |
| 19 | url(r'^api/v1/devices/(?P<uuid>[a-f0-9-]+)/$', rest_api_devices.RetrieveUpdateDestroyDevice.as_view(), name='api_v1_retrieve_device'), |
| 20 | url(r'^api/v1/devices/register/$', rest_api_devices.register_device, name='api_v1_register_device'), |
Dirk Vogt | d134521 | 2016-09-14 14:31:45 +0200 | [diff] [blame] | 21 | ] |