Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / test-scheduler / server / src / env / service / greet.yaml
1 ##############################################################################
2 # Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 ---
11
12 greet:
13   ip: t-scheduler-server
14   port: 5312
15   apis:
16     -
17       name: greet
18       method: GET
19       baseuri: greet
20       params:
21         - name: name
22           description: user name
23       template:
24         uri: ((baseuri))?name=((name))
25       response:
26         result: int
27         next:
28           aa: str
29           bb: int
30     -
31       name: answer
32       method: POST
33       baseuri: answer
34       params:
35         - name: ping
36           description: param ping
37       template:
38         uri: ((baseuri))
39         body:
40           ping: ((ping))
41
42     -
43       name: ten
44       method: GET
45       baseuri: ten
46       template:
47         uri: ((baseuri))
48
49
50     -
51       name: switch
52       method: GET
53       baseuri: switch
54       template:
55         uri: ((baseuri))
56       return:
57         -
58           result
59
60     -
61       name: switch_2
62       method: GET
63       baseuri: switch_2
64       template:
65         uri: ((baseuri))
66       return:
67         -
68           result