Fix formatting issues in RST files
[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 .. code-block:: json
9    :linenos:
10    
11    {
12       "description": "This is Rest Resource Source Node Type",
13       "version": "1.0.0",
14       "properties": {
15         "type": {
16           "required": false,
17           "type": "string",
18           "default": "JSON",
19           "constraints": [
20             {
21               "valid_values": [
22                 "JSON"
23               ]
24             }
25           ]
26         },
27         "verb": {
28           "required": false,
29           "type": "string",
30           "default": "GET",
31           "constraints": [
32             {
33               "valid_values": [
34                 "GET", "POST", "DELETE", "PUT"
35               ]
36             }
37           ]
38         },
39         "payload": {
40           "required": false,
41           "type": "string",
42           "default": ""
43         },
44         "endpoint-selector": {
45           "required": false,
46           "type": "string"
47         },
48         "url-path": {
49           "required": true,
50           "type": "string"
51         },
52         "path": {
53           "required": true,
54           "type": "string"
55         },
56         "expression-type": {
57           "required": false,
58           "type": "string",
59           "default": "JSON_PATH",
60           "constraints": [
61             {
62               "valid_values": [
63                 "JSON_PATH",
64                 "JSON_POINTER"
65               ]
66             }
67           ]
68         },
69         "input-key-mapping": {
70           "required": false,
71           "type": "map",
72           "entry_schema": {
73             "type": "string"
74           }
75         },
76         "output-key-mapping": {
77           "required": false,
78           "type": "map",
79           "entry_schema": {
80             "type": "string"
81           }
82         },
83         "key-dependencies": {
84           "required": true,
85           "type": "list",
86           "entry_schema": {
87             "type": "string"
88           }
89         }
90       },
91       "derived_from": "tosca.nodes.ResourceSource"
92    }