several changes on auth flow
[osm/LW-UI.git] / projecthandler / urls / project.py
1 #
2 # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 from django.conf.urls import url, include
18 from projecthandler import views
19
20 urlpatterns = [
21 url(r'^$', views.open_project, name='open_project'),
22 url(r'^list/', views.user_projects, name='projects_list'),
23 url(r'^new/', views.create_new_project, name='new_project'),
24 url(r'^delete$', views.delete_project, name='delete_project'),
25 url(r'^switch/(?P<project_id>\w+)', views.switch_project, name='switch_project'),
26 url(r'^descriptors/(?P<descriptor_type>\w+)/list$', views.show_descriptors, name='list_descriptors'),
27 url(r'^descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)(/$)',
28 views.edit_descriptor, name='edit_descriptor'),
29 url(r'^descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/delete$',
30 views.delete_descriptor,
31 name='delete_descriptor'),
32 url(r'^descriptors/(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/action/(?P<action_name>[-\w]+)',
33 views.custom_action,
34 name='custom_action'),
35 url(r'^descriptors/(?P<descriptor_type>\w+)/new$', views.new_descriptor,
36 name='new_descriptor'),
37 url(r'^composer$', views.open_composer, name='open_composer'),
38 url(r'^availablenodes', views.get_available_nodes, name='get_available_nodes'),
39 url(r'^sdn/', include('sdnctrlhandler.urls', namespace='sdns'), name='sdns_base'),
40 url(r'^vims/', include('vimhandler.urls', namespace='vims'), name='vims_base'),
41 url(r'^instances/', include('instancehandler.urls', namespace='instances'), name='instances_base'),
42
43 ]