github.com/decred/dcrlnd@v0.7.6/lnrpc/watchtowerrpc/watchtower.swagger.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "watchtowerrpc/watchtower.proto",
     5      "version": "version not set"
     6    },
     7    "tags": [
     8      {
     9        "name": "Watchtower"
    10      }
    11    ],
    12    "consumes": [
    13      "application/json"
    14    ],
    15    "produces": [
    16      "application/json"
    17    ],
    18    "paths": {
    19      "/v2/watchtower/server": {
    20        "get": {
    21          "summary": "lncli: tower info\nGetInfo returns general information concerning the companion watchtower\nincluding its public key and URIs where the server is currently\nlistening for clients.",
    22          "operationId": "Watchtower_GetInfo",
    23          "responses": {
    24            "200": {
    25              "description": "A successful response.",
    26              "schema": {
    27                "$ref": "#/definitions/watchtowerrpcGetInfoResponse"
    28              }
    29            },
    30            "default": {
    31              "description": "An unexpected error response.",
    32              "schema": {
    33                "$ref": "#/definitions/rpcStatus"
    34              }
    35            }
    36          },
    37          "tags": [
    38            "Watchtower"
    39          ]
    40        }
    41      }
    42    },
    43    "definitions": {
    44      "protobufAny": {
    45        "type": "object",
    46        "properties": {
    47          "type_url": {
    48            "type": "string"
    49          },
    50          "value": {
    51            "type": "string",
    52            "format": "byte"
    53          }
    54        }
    55      },
    56      "rpcStatus": {
    57        "type": "object",
    58        "properties": {
    59          "code": {
    60            "type": "integer",
    61            "format": "int32"
    62          },
    63          "message": {
    64            "type": "string"
    65          },
    66          "details": {
    67            "type": "array",
    68            "items": {
    69              "$ref": "#/definitions/protobufAny"
    70            }
    71          }
    72        }
    73      },
    74      "watchtowerrpcGetInfoResponse": {
    75        "type": "object",
    76        "properties": {
    77          "pubkey": {
    78            "type": "string",
    79            "format": "byte",
    80            "description": "The public key of the watchtower."
    81          },
    82          "listeners": {
    83            "type": "array",
    84            "items": {
    85              "type": "string"
    86            },
    87            "description": "The listening addresses of the watchtower."
    88          },
    89          "uris": {
    90            "type": "array",
    91            "items": {
    92              "type": "string"
    93            },
    94            "description": "The URIs of the watchtower."
    95          }
    96        }
    97      }
    98    }
    99  }