Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / api / urls.py @ 6e416d7b

History | View | Annotate | Download (2.3 kB)

1 18f21257 Giorgos Korfiatis
# Copyright 2013 GRNET S.A. All rights reserved.
2 18f21257 Giorgos Korfiatis
#
3 18f21257 Giorgos Korfiatis
# Redistribution and use in source and binary forms, with or
4 18f21257 Giorgos Korfiatis
# without modification, are permitted provided that the following
5 18f21257 Giorgos Korfiatis
# conditions are met:
6 18f21257 Giorgos Korfiatis
#
7 18f21257 Giorgos Korfiatis
#   1. Redistributions of source code must retain the above
8 18f21257 Giorgos Korfiatis
#      copyright notice, this list of conditions and the following
9 18f21257 Giorgos Korfiatis
#      disclaimer.
10 18f21257 Giorgos Korfiatis
#
11 18f21257 Giorgos Korfiatis
#   2. Redistributions in binary form must reproduce the above
12 18f21257 Giorgos Korfiatis
#      copyright notice, this list of conditions and the following
13 18f21257 Giorgos Korfiatis
#      disclaimer in the documentation and/or other materials
14 18f21257 Giorgos Korfiatis
#      provided with the distribution.
15 18f21257 Giorgos Korfiatis
#
16 18f21257 Giorgos Korfiatis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 18f21257 Giorgos Korfiatis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 18f21257 Giorgos Korfiatis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 18f21257 Giorgos Korfiatis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 18f21257 Giorgos Korfiatis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 18f21257 Giorgos Korfiatis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 18f21257 Giorgos Korfiatis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 18f21257 Giorgos Korfiatis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 18f21257 Giorgos Korfiatis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 18f21257 Giorgos Korfiatis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 18f21257 Giorgos Korfiatis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 18f21257 Giorgos Korfiatis
# POSSIBILITY OF SUCH DAMAGE.
28 18f21257 Giorgos Korfiatis
#
29 18f21257 Giorgos Korfiatis
# The views and conclusions contained in the software and
30 18f21257 Giorgos Korfiatis
# documentation are those of the authors and should not be
31 18f21257 Giorgos Korfiatis
# interpreted as representing official policies, either expressed
32 18f21257 Giorgos Korfiatis
# or implied, of GRNET S.A.
33 18f21257 Giorgos Korfiatis
34 18f21257 Giorgos Korfiatis
from django.conf.urls.defaults import patterns, url
35 18f21257 Giorgos Korfiatis
36 79b5d61b Sofia Papagiannaki
37 58350a50 Sofia Papagiannaki
urlpatterns = patterns(
38 18f21257 Giorgos Korfiatis
    'astakos.api.quotas',
39 4e03ba30 Kostas Papadimitriou
    url(r'^quotas/?$', 'quotas', name="astakos-api-quotas"),
40 bb005bc2 Giorgos Korfiatis
    url(r'^service_quotas/?$', 'service_quotas'),
41 1028e568 Giorgos Korfiatis
    url(r'^resources/?$', 'resources'),
42 18f21257 Giorgos Korfiatis
    url(r'^commissions/?$', 'commissions'),
43 18f21257 Giorgos Korfiatis
    url(r'^commissions/action/?$', 'resolve_pending_commissions'),
44 18f21257 Giorgos Korfiatis
    url(r'^commissions/(?P<serial>\d+)/?$', 'get_commission'),
45 18f21257 Giorgos Korfiatis
    url(r'^commissions/(?P<serial>\d+)/action/?$', 'serial_action'),
46 18f21257 Giorgos Korfiatis
)
47 79b5d61b Sofia Papagiannaki
48 79b5d61b Sofia Papagiannaki
urlpatterns += patterns(
49 79b5d61b Sofia Papagiannaki
    'astakos.api.user',
50 79b5d61b Sofia Papagiannaki
    url(r'^feedback/?$', 'send_feedback'),
51 79b5d61b Sofia Papagiannaki
    url(r'^user_catalogs/?$', 'get_uuid_displayname_catalogs'),
52 79b5d61b Sofia Papagiannaki
    url(r'^authenticate/?$', 'authenticate'),
53 79b5d61b Sofia Papagiannaki
)
54 79b5d61b Sofia Papagiannaki
55 79b5d61b Sofia Papagiannaki
urlpatterns += patterns(
56 79b5d61b Sofia Papagiannaki
    'astakos.api.service',
57 79b5d61b Sofia Papagiannaki
    url(r'^service/user_catalogs/?$', 'get_uuid_displayname_catalogs'),
58 79b5d61b Sofia Papagiannaki
)