1 # Copyright 2018 EveryUP Srl
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 from django
.conf
.urls
import url
17 from descriptorhandler
import views
20 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)(/$)', views
.edit_descriptor
, name
='edit_descriptor'),
21 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/addElement/(?P<element_type>\w+)', views
.addElement
,
23 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/removeElement/(?P<element_type>\w+)', views
.removeElement
,
24 name
='removeElement'),
25 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/updateElement/(?P<element_type>\w+)', views
.updateElement
,
26 name
='updateElement'),
27 url(r
'(?P<descriptor_type>\w+)/(?P<descriptor_id>[-\w]+)/action/(?P<action_name>[-\w]+)', views
.custom_action
,
28 name
='custom_action'),
29 url(r
'composer$', views
.open_composer
, name
='open_composer'),
30 url(r
'availablenodes', views
.get_available_nodes
, name
='get_available_nodes'),