Make Http as separate plugin
[cli.git] / products / sample / src / main / resources / open-cli-schema / hello-world-http.yaml
1 open_cli_schema_version: 1.0
2
3 name: hello-world-http
4
5 description: |
6    First cmd hello world using http runing under
7    lighttpd in cli at http://<cli-ip>:8080/version.json
8
9 info:
10   product: sample-helloworld
11   service: hello-world
12   author: ONAP CLI Team onap-discuss@lists.onap.org
13
14 parameters:
15     - name: name
16       description: name of the person
17       long_option: name
18       short_option: b
19       default_value: ${DEMO_NAME}
20       type: string
21       is_optional: false
22
23 results:
24     direction: landscape
25     attributes:
26       - name: output
27         description: hello world output
28         type: string
29         scope: short
30
31 http:
32     service:
33         name: sample-service
34         version: 1.0.0
35         auth: none
36         mode: direct
37
38     request:
39         uri: /version.json
40         method: GET
41     success_codes:
42         - 200
43         - 201
44     result_map:
45         output: Hello ${name}, You are running on $b{$.name} $b{$.version}
46
47     sample_response:
48         body: {"name": "oclip", "version": "1.0"}