|
2 | 2 | "openapi": "3.0.3", |
3 | 3 | "info": { |
4 | 4 | "title": "Hyperledger Cactus Plugin - Keychain Memory ", |
5 | | - "description": "Contains/describes the Hyperledger Cactus Keychain Memory plugin.", |
| 5 | + "description": "Contains/describes the Hyperledger Cacti Keychain Memory plugin.", |
6 | 6 | "version": "v2.0.0-alpha.2", |
7 | 7 | "license": { |
8 | 8 | "name": "Apache-2.0", |
|
11 | 11 | }, |
12 | 12 | "components": { |
13 | 13 | "schemas": { |
14 | | - "GetKeychainEntryRequest": { |
15 | | - "type": "object", |
16 | | - "required": ["key"], |
17 | | - "additionalProperties": false, |
18 | | - "properties": { |
19 | | - "key": { |
20 | | - "type": "string", |
21 | | - "description": "The key for the entry to get from the keychain.", |
22 | | - "minLength": 1, |
23 | | - "maxLength": 1024, |
24 | | - "nullable": false |
| 14 | + "PrometheusExporterMetricsResponse": { |
| 15 | + "type": "string", |
| 16 | + "nullable": false |
| 17 | + } |
| 18 | + } |
| 19 | + }, |
| 20 | + "paths": { |
| 21 | + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-keychain-entry": { |
| 22 | + "post": { |
| 23 | + "x-hyperledger-cacti": { |
| 24 | + "http": { |
| 25 | + "path": "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-keychain-entry", |
| 26 | + "verbLowerCase": "post" |
25 | 27 | } |
26 | | - } |
27 | | - }, |
28 | | - "GetKeychainEntryResponse": { |
29 | | - "type": "object", |
30 | | - "required": ["key", "value"], |
31 | | - "properties": { |
32 | | - "key": { |
33 | | - "type": "string", |
34 | | - "description": "The key that was used to retrieve the value from the keychain.", |
35 | | - "minLength": 1, |
36 | | - "maxLength": 1024, |
37 | | - "nullable": false |
| 28 | + }, |
| 29 | + "operationId": "getKeychainEntryV1", |
| 30 | + "summary": "Retrieves the contents of a keychain entry from the backend.", |
| 31 | + "parameters": [], |
| 32 | + "requestBody": { |
| 33 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/requestBodies/keychain_get_entry_request_body" |
| 34 | + }, |
| 35 | + "responses": { |
| 36 | + "200": { |
| 37 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_200" |
38 | 38 | }, |
39 | | - "value": { |
40 | | - "type": "string", |
41 | | - "description": "The value associated with the requested key on the keychain.", |
42 | | - "minLength": 0, |
43 | | - "maxLength": 10485760, |
44 | | - "nullable": false |
45 | | - } |
46 | | - } |
47 | | - }, |
48 | | - "SetKeychainEntryRequest": { |
49 | | - "type": "object", |
50 | | - "required": ["key", "value"], |
51 | | - "additionalProperties": false, |
52 | | - "properties": { |
53 | | - "key": { |
54 | | - "type": "string", |
55 | | - "description": "The key for the entry to set on the keychain.", |
56 | | - "minLength": 1, |
57 | | - "maxLength": 1024, |
58 | | - "nullable": false |
| 39 | + "400": { |
| 40 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_400" |
59 | 41 | }, |
60 | | - "value": { |
61 | | - "type": "string", |
62 | | - "description": "The value that will be associated with the key on the keychain.", |
63 | | - "minLength": 0, |
64 | | - "maxLength": 10485760, |
65 | | - "nullable": false |
| 42 | + "401": { |
| 43 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_401" |
| 44 | + }, |
| 45 | + "404": { |
| 46 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_404" |
| 47 | + }, |
| 48 | + "500": { |
| 49 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_get_entry_500" |
66 | 50 | } |
67 | 51 | } |
68 | | - }, |
69 | | - "SetKeychainEntryResponse": { |
70 | | - "type": "object", |
71 | | - "required": ["key"], |
72 | | - "properties": { |
73 | | - "key": { |
74 | | - "type": "string", |
75 | | - "description": "The key that was used to set the value on the keychain.", |
76 | | - "minLength": 1, |
77 | | - "maxLength": 1024, |
78 | | - "nullable": false |
| 52 | + } |
| 53 | + }, |
| 54 | + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/set-keychain-entry": { |
| 55 | + "post": { |
| 56 | + "x-hyperledger-cacti": { |
| 57 | + "http": { |
| 58 | + "path": "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/set-keychain-entry", |
| 59 | + "verbLowerCase": "post" |
| 60 | + } |
| 61 | + }, |
| 62 | + "operationId": "setKeychainEntryV1", |
| 63 | + "summary": "Sets a value under a key on the keychain backend.", |
| 64 | + "parameters": [], |
| 65 | + "requestBody": { |
| 66 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/requestBodies/keychain_set_entry_request_body" |
| 67 | + }, |
| 68 | + "responses": { |
| 69 | + "200": { |
| 70 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_set_entry_200" |
| 71 | + }, |
| 72 | + "400": { |
| 73 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_set_entry_400" |
| 74 | + }, |
| 75 | + "401": { |
| 76 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_set_entry_401" |
| 77 | + }, |
| 78 | + "500": { |
| 79 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_set_entry_500" |
79 | 80 | } |
80 | 81 | } |
81 | | - }, |
82 | | - "PrometheusExporterMetricsResponse": { |
83 | | - "type": "string", |
84 | | - "nullable": false |
85 | 82 | } |
86 | 83 | }, |
87 | | - "requestBodies": { |
88 | | - "keychain_get_entry_request_body": { |
89 | | - "description": "Request body to obtain a keychain entry via its key", |
90 | | - "required": true, |
91 | | - "content": { |
92 | | - "application/json": { |
93 | | - "schema": { |
94 | | - "$ref": "#/components/schemas/GetKeychainEntryRequest" |
95 | | - } |
| 84 | + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/delete-keychain-entry": { |
| 85 | + "post": { |
| 86 | + "x-hyperledger-cacti": { |
| 87 | + "http": { |
| 88 | + "path": "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/delete-keychain-entry", |
| 89 | + "verbLowerCase": "post" |
96 | 90 | } |
97 | | - } |
98 | | - }, |
99 | | - "keychain_set_entry_request_body": { |
100 | | - "description": "Request body to write/update a keychain entry via its key", |
101 | | - "required": true, |
102 | | - "content": { |
103 | | - "application/json": { |
104 | | - "schema": { |
105 | | - "$ref": "#/components/schemas/SetKeychainEntryRequest" |
106 | | - } |
| 91 | + }, |
| 92 | + "operationId": "deleteKeychainEntryV1", |
| 93 | + "summary": "Deletes an entry under a key on the keychain backend.", |
| 94 | + "parameters": [], |
| 95 | + "requestBody": { |
| 96 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/requestBodies/keychain_delete_entry_request_body" |
| 97 | + }, |
| 98 | + "responses": { |
| 99 | + "200": { |
| 100 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_delete_entry_200" |
| 101 | + }, |
| 102 | + "400": { |
| 103 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_delete_entry_400" |
| 104 | + }, |
| 105 | + "401": { |
| 106 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_delete_entry_401" |
| 107 | + }, |
| 108 | + "500": { |
| 109 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_delete_entry_500" |
107 | 110 | } |
108 | 111 | } |
109 | 112 | } |
110 | 113 | }, |
111 | | - "responses": { |
112 | | - "keychain_get_entry_200": { |
113 | | - "description": "OK", |
114 | | - "content": { |
115 | | - "application/json": { |
116 | | - "schema": { |
117 | | - "$ref": "#/components/schemas/GetKeychainEntryResponse" |
118 | | - } |
| 114 | + "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/has-keychain-entry": { |
| 115 | + "post": { |
| 116 | + "x-hyperledger-cacti": { |
| 117 | + "http": { |
| 118 | + "path": "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/has-keychain-entry", |
| 119 | + "verbLowerCase": "post" |
119 | 120 | } |
120 | | - } |
121 | | - }, |
122 | | - "keychain_get_entry_400": { |
123 | | - "description": "Bad request. Key must be a string and longer than 0, shorter than 1024 characters." |
124 | | - }, |
125 | | - "keychain_get_entry_401": { |
126 | | - "description": "Authorization information is missing or invalid." |
127 | | - }, |
128 | | - "keychain_get_entry_404": { |
129 | | - "description": "A keychain item with the specified key was not found." |
130 | | - }, |
131 | | - "keychain_get_entry_500": { |
132 | | - "description": "Unexpected error." |
133 | | - }, |
134 | | - "keychain_set_entry_200": { |
135 | | - "description": "OK", |
136 | | - "content": { |
137 | | - "application/json": { |
138 | | - "schema": { |
139 | | - "$ref": "#/components/schemas/SetKeychainEntryResponse" |
140 | | - } |
| 121 | + }, |
| 122 | + "operationId": "hasKeychainEntryV1", |
| 123 | + "summary": "Checks that an entry exists under a key on the keychain backend", |
| 124 | + "parameters": [], |
| 125 | + "requestBody": { |
| 126 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/requestBodies/keychain_has_entry_request_body" |
| 127 | + }, |
| 128 | + "responses": { |
| 129 | + "200": { |
| 130 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_has_entry_200" |
| 131 | + }, |
| 132 | + "400": { |
| 133 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_has_entry_400" |
| 134 | + }, |
| 135 | + "401": { |
| 136 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_has_entry_401" |
| 137 | + }, |
| 138 | + "500": { |
| 139 | + "$ref": "https://raw.githubusercontent.com/hyperledger/cactus/v2.0.0-alpha.2/packages/cactus-core-api/src/main/json/openapi.json#/components/responses/keychain_has_entry_500" |
141 | 140 | } |
142 | 141 | } |
143 | | - }, |
144 | | - "keychain_set_entry_400": { |
145 | | - "description": "Bad request. Key must be a string and longer than 0, shorter than 1024 characters." |
146 | | - }, |
147 | | - "keychain_set_entry_401": { |
148 | | - "description": "Authorization information is missing or invalid." |
149 | | - }, |
150 | | - "keychain_set_entry_500": { |
151 | | - "description": "Unexpected error." |
152 | 142 | } |
153 | | - } |
154 | | - }, |
155 | | - "paths": { |
| 143 | + }, |
156 | 144 | "/api/v1/plugins/@hyperledger/cactus-plugin-keychain-memory/get-prometheus-exporter-metrics": { |
157 | 145 | "get": { |
158 | 146 | "x-hyperledger-cacti": { |
|
0 commit comments