Skip to content

Commit

Permalink
[skip ci] Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord authored and actions-user committed Jan 19, 2022
1 parent 9d7d8e3 commit 3eb1c27
Showing 1 changed file with 74 additions and 4 deletions.
78 changes: 74 additions & 4 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,80 @@ var doc = `{
}
}
},
"/{ledger}/mapping": {
"get": {
"description": "Get ledger mapping",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"contracts"
],
"summary": "Get mapping",
"parameters": [
{
"type": "string",
"description": "ledger",
"name": "ledger",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/controllers.BaseResponse"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/controllers.BaseResponse"
}
}
}
},
"put": {
"description": "Update ledger mapping",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"mapping"
],
"summary": "Put mapping",
"parameters": [
{
"type": "string",
"description": "ledger",
"name": "ledger",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/controllers.BaseResponse"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/controllers.BaseResponse"
}
}
}
}
},
"/{ledger}/script": {
"post": {
"description": "Execute a Numscript and create the transaction if any",
Expand Down Expand Up @@ -525,10 +599,6 @@ var doc = `{
"COIN": 100
}
},
"contract": {
"type": "string",
"example": "default"
},
"metadata": {
"type": "object"
},
Expand Down

0 comments on commit 3eb1c27

Please sign in to comment.