aboutsummaryrefslogtreecommitdiffstats
path: root/api/urls.py
blob: 0c63fb040b1ee429878c3effbc345d954c8a7c3e (plain)
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
##############################################################################
# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
from __future__ import absolute_import

from api import Url


urlpatterns = [
    Url('/yardstick/asynctask', 'v1_async_task'),
    Url('/yardstick/testcases', 'v1_test_case'),
    Url('/yardstick/testcases/release/action', 'v1_release_case'),
    Url('/yardstick/testcases/samples/action', 'v1_sample_case'),
    Url('/yardstick/testcases/<case_name>/docs', 'v1_case_docs'),
    Url('/yardstick/testsuites/action', 'v1_test_suite'),
    Url('/yardstick/results', 'v1_result'),
    Url('/yardstick/env/action', 'v1_env'),

    # api v2
    Url('/api/v2/yardstick/environments', 'v2_environments'),
    Url('/api/v2/yardstick/environments/action', 'v2_environments'),
]