Skip to content

Instantly share code, notes, and snippets.

@banool
Created July 12, 2022 15:07
Show Gist options
  • Save banool/839bb49c3c019de4c87c4c4c5e5fc275 to your computer and use it in GitHub Desktop.
Save banool/839bb49c3c019de4c87c4c4c5e5fc275 to your computer and use it in GitHub Desktop.
{
"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