1#!/usr/bin/env python3
2
3"""Standard Django file mapping url strings to view functions."""
4
5from django.urls import path
6
7import chart.api2.views
8
9app_name = 'api2'
10
11urlpatterns = [
12 # display a top level help page
13 path('',
14 chart.api2.views.view_index,
15 name='index'),
16
17 # Retrieve timeseries data
18 path('timeseries',
19 chart.api2.views.view_timeseries,
20 name='timeseries'),
21
22 # Retrieve events
23 path('events',
24 chart.api2.views.view_events,
25 name='events'),
26
27 # Packet retrieval
28 path('packets',
29 chart.api2.views.view_packets,
30 name='packets'),
31
32 # Geolocation and interpolation
33 path('geolocate',
34 chart.api2.views.view_geolocate,
35 name='geolocate'),
36
37 # Calibrate a value
38 path('calibrate',
39 chart.api2.views.view_calibrate,
40 name='calibrate'),
41
42 # Ingested product information
43 path('product',
44 chart.api2.views.view_product,
45 name='product'),
46
47 # Jobs summary
48 path('job/summary',
49 chart.api2.views.view_job_summary,
50 name='job/summary'),
51
52 # Jobs list
53 path('job/list',
54 chart.api2.views.view_job_list,
55 name='job/list'),
56
57 # Jobs list
58 path('job/info',
59 chart.api2.views.view_job_info,
60 name='job/info'),
61
62 # Job working directory file retrieval
63 path('job/file',
64 chart.api2.views.view_job_file,
65 name='job/file'),
66
67 # Project-wide metadata
68 path('meta/project',
69 chart.api2.views.view_meta_project,
70 name='meta/project'),
71
72 # List available stores
73 path('meta/stores',
74 chart.api2.views.view_meta_stores,
75 name='meta/stores'),
76
77 # Information on a single store
78 path('meta/store',
79 chart.api2.views.view_meta_single_store,
80 name='meta/store'),
81
82 # Show available stats regions, either default regions or for a single SID
83 path('meta/regions',
84 chart.api2.views.view_meta_regions,
85 name='meta/regions'),
86
87 # Information on a single field
88 path('meta/param',
89 chart.api2.views.view_meta_param,
90 name='meta/param'),
91
92 # List PUS packets
93 path('meta/packets',
94 chart.api2.views.view_meta_packets,
95 name='meta/packets'),
96
97 # Show information on a single PUS packet definition
98 path('meta/packet',
99 chart.api2.views.view_meta_single_packet,
100 name='meta/packet'),
101
102 # List event classes
103 path('meta/events',
104 chart.api2.views.view_meta_events,
105 name='meta/events'),
106
107 # Info in single event class
108 path('meta/event',
109 chart.api2.views.view_meta_single_event,
110 name='meta/event'),
111
112 # Spacecraft PUS state
113 path('state',
114 chart.api2.views.view_state,
115 name='state'),
116
117 # Obsolete endpoints for former names
118 path('ts',
119 chart.api2.views.view_timeseries),
120 path('meta/tables',
121 chart.api2.views.view_meta_tables),
122 path('meta/table',
123 chart.api2.views.view_meta_single_table),
124 path('meta/field',
125 chart.api2.views.view_meta_field),
126]