blob: 2120b9dce5767d31a7af3faa88cb093dfeea3e5e [file] [log] [blame]
Dirk Vogtd1345212016-09-14 14:31:45 +02001from django.conf.urls import url, include
Dirk Vogtf130c752016-08-23 14:45:01 +02002from . import views
Dirk Vogtf2a33422016-10-11 17:17:26 +02003from . import rest_api_devices
4from . import rest_api_crashreports
Dirk Vogtc9e10ab2016-10-12 13:58:15 +02005from . import rest_api_heartbeats
Dirk Vogtf130c752016-08-23 14:45:01 +02006
7urlpatterns = [
Dirk Vogtf2a33422016-10-11 17:17:26 +02008 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 Vogtc9e10ab2016-10-12 13:58:15 +020010 #url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/logfiles/$', views.index, name='api_v1_crashreports_single_logfiles'),
Dirk Vogtf2a33422016-10-11 17:17:26 +020011 # url(r'^api/v1/crashreports/(?P<pk>[0-9]+)/logfiles/(?P<pk>[0-9]+)/$', views.index, name='api_v1_crashreports_single_logfiles_single'),
Dirk Vogtc9e10ab2016-10-12 13:58:15 +020012
13 url(r'^api/v1/heartbeats/$', rest_api_heartbeats.ListCreateHeartBeat.as_view(), name='api_v1_heartbeat'),
14
Dirk Vogtf2a33422016-10-11 17:17:26 +020015 #
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 Vogtd1345212016-09-14 14:31:45 +020022]