Created
July 12, 2022 15:07
-
-
Save banool/839bb49c3c019de4c87c4c4c5e5fc275 to your computer and use it in GitHub Desktop.
This file contains 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.3", | |
"info": { | |
"title": "aptos-api", | |
"description": "Aptos REST API", | |
"contact": { | |
"name": "Aptos Labs", | |
"email": "[email protected]" | |
}, | |
"license": { | |
"name": "Apache-2.0" | |
}, | |
"version": "0.1.0" | |
}, | |
"paths": { | |
"/": { | |
"get": { | |
"tags": [ | |
"crate" | |
], | |
"description": "", | |
"operationId": "index", | |
"responses": { | |
"200": { | |
"description": "Success", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/IndexResponse" | |
} | |
} | |
} | |
}, | |
"500": { | |
"description": "Error" | |
} | |
}, | |
"deprecated": false | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"IndexResponse": { | |
"type": "object", | |
"required": [ | |
"ledger_info", | |
"node_role" | |
], | |
"properties": { | |
"node_role": { | |
"$ref": "#/components/schemas/RoleType" | |
}, | |
"ledger_info": { | |
"$ref": "#/components/schemas/LedgerInfo" | |
} | |
}, | |
"description": "The struct holding all data returned to the client by the" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment