-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiurls.py
43 lines (36 loc) · 894 Bytes
/
apiurls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# coding=utf-8
from django.urls import path
from .api.views import (
QpsTimeseriesGetProjectApiView,
GetUser,
GetOrCreateGroup,
GetProjectGroup,
UpdateProjectTitle
)
urlpatterns = [
path(
'api/get-project/<str:project_name>',
QpsTimeseriesGetProjectApiView.as_view(),
name='qpstimeseries-get-project'
),
path(
'api/get-user/<str:username>',
GetUser.as_view(),
name='get-user'
),
path(
'api/get-create-group',
GetOrCreateGroup.as_view(),
name='get-create-group'
),
path(
'api/get-project-group/<str:group_name>',
GetProjectGroup.as_view(),
name='get-project-group'
),
path(
'api/update-project-title/<str:project_group_slug>/<str:project_slug>',
UpdateProjectTitle.as_view(),
name='update-project-slug'
),
]