Created
March 30, 2020 08:05
-
-
Save MikeRalphson/2fc3d00c07a591784db7dbf5f1f41de8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "Reinvent-API", | |
"description": "Reusable and minimalistic API for Hyperledger-fabric Networks", | |
"contact": { | |
"name": "Dev", | |
"email": "[email protected]", | |
"url": "https://dev.github.io/" | |
}, | |
"license": { | |
"name": "MIT", | |
"url": "https://opensource.org/licenses/MIT" | |
} | |
}, | |
"servers": [ | |
{ | |
"url": "http://localhost:3000/api" | |
} | |
], | |
"paths": { | |
"/invoke": { | |
"post": { | |
"tags": [ | |
"API Explorer" | |
], | |
"description": "invoke chaincode function", | |
"operationId": "invoke", | |
"requestBody": { | |
"description": "body parameters should be passed as the order defined in chaincode function. First argument must be function name to call.", | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/invoke" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Chaincode Invoke Succesfull.", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/invoke" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"invoke": { | |
"properties": { | |
"fcn": { | |
"type": "string" | |
}, | |
"arg1": { | |
"type": "string" | |
}, | |
"arg2": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment