Files
aperture/pricesrpc/prices.swagger.json
2025-05-26 12:49:05 +02:00

103 lines
2.0 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "prices.proto",
"version": "version not set"
},
"tags": [
{
"name": "Prices"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/aperture/price": {
"post": {
"operationId": "Prices_GetPrice",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/pricesrpcGetPriceResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/pricesrpcGetPriceRequest"
}
}
],
"tags": [
"Prices"
]
}
}
},
"definitions": {
"pricesrpcGetPriceRequest": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"http_request_text": {
"type": "string"
}
}
},
"pricesrpcGetPriceResponse": {
"type": "object",
"properties": {
"price_sats": {
"type": "string",
"format": "int64"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}