File tree Expand file tree Collapse file tree 1 file changed +74
-4
lines changed
Expand file tree Collapse file tree 1 file changed +74
-4
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,80 @@ var doc = `{
183183 }
184184 }
185185 },
186+ "/{ledger}/mapping": {
187+ "get": {
188+ "description": "Get ledger mapping",
189+ "consumes": [
190+ "application/json"
191+ ],
192+ "produces": [
193+ "application/json"
194+ ],
195+ "tags": [
196+ "contracts"
197+ ],
198+ "summary": "Get mapping",
199+ "parameters": [
200+ {
201+ "type": "string",
202+ "description": "ledger",
203+ "name": "ledger",
204+ "in": "path",
205+ "required": true
206+ }
207+ ],
208+ "responses": {
209+ "200": {
210+ "description": "OK",
211+ "schema": {
212+ "$ref": "#/definitions/controllers.BaseResponse"
213+ }
214+ },
215+ "404": {
216+ "description": "Not Found",
217+ "schema": {
218+ "$ref": "#/definitions/controllers.BaseResponse"
219+ }
220+ }
221+ }
222+ },
223+ "put": {
224+ "description": "Update ledger mapping",
225+ "consumes": [
226+ "application/json"
227+ ],
228+ "produces": [
229+ "application/json"
230+ ],
231+ "tags": [
232+ "mapping"
233+ ],
234+ "summary": "Put mapping",
235+ "parameters": [
236+ {
237+ "type": "string",
238+ "description": "ledger",
239+ "name": "ledger",
240+ "in": "path",
241+ "required": true
242+ }
243+ ],
244+ "responses": {
245+ "200": {
246+ "description": "OK",
247+ "schema": {
248+ "$ref": "#/definitions/controllers.BaseResponse"
249+ }
250+ },
251+ "404": {
252+ "description": "Not Found",
253+ "schema": {
254+ "$ref": "#/definitions/controllers.BaseResponse"
255+ }
256+ }
257+ }
258+ }
259+ },
186260 "/{ledger}/script": {
187261 "post": {
188262 "description": "Execute a Numscript and create the transaction if any",
@@ -525,10 +599,6 @@ var doc = `{
525599 "COIN": 100
526600 }
527601 },
528- "contract": {
529- "type": "string",
530- "example": "default"
531- },
532602 "metadata": {
533603 "type": "object"
534604 },
You can’t perform that action at this time.
0 commit comments