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 | c9e10ab | 2016-10-12 13:58:15 +0200 | [diff] [blame^] | 5 | from . import rest_api_heartbeats |
Dirk Vogt | f130c75 | 2016-08-23 14:45:01 +0200 | [diff] [blame] | 6 | |
| 7 | urlpatterns = [ |
Dirk Vogt | f2a3342 | 2016-10-11 17:17:26 +0200 | [diff] [blame] | 8 | url(r'^api/v1/crashreports/$', rest_api_crashreports.ListCreateCrashReport.as_view(), name='api_v1_crashreports'), |
| 9 | # url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/$', views.index, name='api_v1_crashreports_single'), |
Dirk Vogt | c9e10ab | 2016-10-12 13:58:15 +0200 | [diff] [blame^] | 10 | #url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/logfiles/$', views.index, name='api_v1_crashreports_single_logfiles'), |
Dirk Vogt | f2a3342 | 2016-10-11 17:17:26 +0200 | [diff] [blame] | 11 | # url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/logfiles/(?P<pk>[0-9]+)/$', views.index, name='api_v1_crashreports_single_logfiles_single'), |
Dirk Vogt | c9e10ab | 2016-10-12 13:58:15 +0200 | [diff] [blame^] | 12 | |
| 13 | url(r'^api/v1/heartbeats/$', rest_api_heartbeats.ListCreateHeartBeat.as_view(), name='api_v1_heartbeat'), |
| 14 | |
Dirk Vogt | f2a3342 | 2016-10-11 17:17:26 +0200 | [diff] [blame] | 15 | # |
| 16 | # url(r'^api/v1//logfiles/$',views.index, name='api_v1_logfiles'), |
| 17 | # url(r'^api/v1//logfiles/(?P<pk>[0-9]+)/$',views.index, name='api_v1_logfiles_single') |
| 18 | |
| 19 | url(r'^api/v1/devices/$', rest_api_devices.ListCreateDevices.as_view(), name='api_v1_list_devices'), |
| 20 | url(r'^api/v1/devices/(?P<uuid>[a-f0-9-]+)/$', rest_api_devices.RetrieveUpdateDestroyDevice.as_view(), name='api_v1_retrieve_device'), |
| 21 | 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] | 22 | ] |