Merge "Add support for Ansible packages"
[ccsdk/cds.git] / docs / datadictionary / restsourcecode.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2019 IBM.
4
5 Rest Source Code:
6 =================
7
8 {
9   "description": "This is Rest Resource Source Node Type",
10   "version": "1.0.0",
11   "properties": {
12     "type": {
13       "required": false,
14       "type": "string",
15       "default": "JSON",
16       "constraints": [
17         {
18           "valid_values": [
19             "JSON"
20           ]
21         }
22       ]
23     },
24     "verb": {
25       "required": false,
26       "type": "string",
27       "default": "GET",
28       "constraints": [
29         {
30           "valid_values": [
31             "GET", "POST", "DELETE", "PUT"
32           ]
33         }
34       ]
35     },
36     "payload": {
37       "required": false,
38       "type": "string",
39       "default": ""
40     },
41     "endpoint-selector": {
42       "required": false,
43       "type": "string"
44     },
45     "url-path": {
46       "required": true,
47       "type": "string"
48     },
49     "path": {
50       "required": true,
51       "type": "string"
52     },
53     "expression-type": {
54       "required": false,
55       "type": "string",
56       "default": "JSON_PATH",
57       "constraints": [
58         {
59           "valid_values": [
60             "JSON_PATH",
61             "JSON_POINTER"
62           ]
63         }
64       ]
65     },
66     "input-key-mapping": {
67       "required": false,
68       "type": "map",
69       "entry_schema": {
70         "type": "string"
71       }
72     },
73     "output-key-mapping": {
74       "required": false,
75       "type": "map",
76       "entry_schema": {
77         "type": "string"
78       }
79     },
80     "key-dependencies": {
81       "required": true,
82       "type": "list",
83       "entry_schema": {
84         "type": "string"
85       }
86     }
87   },
88   "derived_from": "tosca.nodes.ResourceSource"
89 }
90