summaryrefslogtreecommitdiffstats
path: root/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml
blob: 31e987764dd0c53cd4a5bf07fe0392aa3b1eb960 (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
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
  service: hello-world

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"}