aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml
blob: 04998ea394b3ee76a05266024a3fa887b4058e28 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
open_cli_schema_version: 1.0

name: hello-world-http

description: |
   First cmd hello world using http runing under
   lighttpd in cli at http://<cli-ip>:8080/version.json

info:
  product: sample-1.0
  service: hello-world
  author: ONAP CLI Team onap-discuss@lists.onap.org

parameters:
    - name: name
      description: name of the person
      long_option: name
      short_option: b
      default_value: ${DEMO_NAME}
      type: string
      is_optional: false

results:
    direction: landscape
    attributes:
      - name: output
        description: hello world output
        type: string
        scope: short

http:
    service:
        name: sample-service
        version: 1.0.0
        auth: none
        mode: direct

    request:
        uri: /version.json
        method: GET
    success_codes:
        - 200
        - 201
    result_map:
        output: Hello ${name}, You are running on $b{$.name} $b{$.version}

    sample_response:
        body: {"name": "oclip", "version": "1.0"}