mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 21:25:06 +01:00
Added installation info. Some cleanup
This commit is contained in:
@@ -493,6 +493,30 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ApiResponseTemporarilyUnavailable'
|
$ref: '#/components/schemas/ApiResponseTemporarilyUnavailable'
|
||||||
|
/getinstallation_info:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- "stats"
|
||||||
|
summary: "Show installation info"
|
||||||
|
description: "Returns detailed cyphernode installation information."
|
||||||
|
operationId: "getInstallationInfo"
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: "successful operation"
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/InstallationInfo'
|
||||||
|
'403':
|
||||||
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
|
'404':
|
||||||
|
$ref: '#/components/schemas/ApiResponseNotFound'
|
||||||
|
'503':
|
||||||
|
description: "Resource temporarily unavailable"
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ApiResponseTemporarilyUnavailable'
|
||||||
/getblockinfo/{blockHash}:
|
/getblockinfo/{blockHash}:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -615,10 +639,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: '#/components/schemas/Balance'
|
||||||
properties:
|
|
||||||
balance:
|
|
||||||
type: "number"
|
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
'503':
|
'503':
|
||||||
@@ -648,10 +669,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: '#/components/schemas/Balance'
|
||||||
properties:
|
|
||||||
balance:
|
|
||||||
type: "number"
|
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
'503':
|
'503':
|
||||||
@@ -681,10 +699,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: "object"
|
$ref: '#/components/schemas/Balance'
|
||||||
properties:
|
|
||||||
balance:
|
|
||||||
type: "number"
|
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
'503':
|
'503':
|
||||||
@@ -1166,6 +1181,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
# TODO: describe response
|
||||||
type: "object"
|
type: "object"
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
@@ -1196,6 +1212,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
# TODO: describe response
|
||||||
type: "object"
|
type: "object"
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
@@ -1284,6 +1301,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
# TODO: describe response
|
||||||
type: "object"
|
type: "object"
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
@@ -1313,6 +1331,9 @@ paths:
|
|||||||
description: "successful operation"
|
description: "successful operation"
|
||||||
content:
|
content:
|
||||||
application/octet-stream:
|
application/octet-stream:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
'403':
|
'403':
|
||||||
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
$ref: '#/components/schemas/ApiResponseNotAllowed'
|
||||||
'503':
|
'503':
|
||||||
@@ -1425,6 +1446,13 @@ components:
|
|||||||
format: "url"
|
format: "url"
|
||||||
watching_since:
|
watching_since:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
Balance:
|
||||||
|
type: "object"
|
||||||
|
required:
|
||||||
|
- "balance"
|
||||||
|
properties:
|
||||||
|
balance:
|
||||||
|
type: "number"
|
||||||
Block:
|
Block:
|
||||||
type: "object"
|
type: "object"
|
||||||
required:
|
required:
|
||||||
@@ -1542,6 +1570,38 @@ components:
|
|||||||
type: "object"
|
type: "object"
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
$ref: '#/components/schemas/TypeBip9SoftFork'
|
$ref: '#/components/schemas/TypeBip9SoftFork'
|
||||||
|
InstallationInfo:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
api_versions:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
type: "string"
|
||||||
|
setup_version:
|
||||||
|
type: "string"
|
||||||
|
bitcoin_version:
|
||||||
|
type: "string"
|
||||||
|
features:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: "string"
|
||||||
|
label:
|
||||||
|
type: "string"
|
||||||
|
host:
|
||||||
|
type: "string"
|
||||||
|
docker:
|
||||||
|
type: "string"
|
||||||
|
networks:
|
||||||
|
type: "array"
|
||||||
|
items:
|
||||||
|
type: "string"
|
||||||
|
extra:
|
||||||
|
type: "object"
|
||||||
|
devmode:
|
||||||
|
type: "boolean"
|
||||||
Input:
|
Input:
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Reference in New Issue
Block a user