github.com/s7techlab/cckit@v0.10.5/examples/token/service/burnable/burnable.swagger.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "token/service/burnable/burnable.proto",
     5      "version": "version not set"
     6    },
     7    "consumes": [
     8      "application/json"
     9    ],
    10    "produces": [
    11      "application/json"
    12    ],
    13    "paths": {
    14      "/burn": {
    15        "post": {
    16          "operationId": "BurnableService_Burn",
    17          "responses": {
    18            "200": {
    19              "description": "A successful response.",
    20              "schema": {
    21                "$ref": "#/definitions/balanceBurnResponse"
    22              }
    23            },
    24            "default": {
    25              "description": "An unexpected error response.",
    26              "schema": {
    27                "$ref": "#/definitions/runtimeError"
    28              }
    29            }
    30          },
    31          "tags": [
    32            "BurnableService"
    33          ]
    34        }
    35      }
    36    },
    37    "definitions": {
    38      "balanceBurnResponse": {
    39        "type": "object",
    40        "properties": {
    41          "sender_address": {
    42            "type": "string"
    43          },
    44          "recipient_address": {
    45            "type": "string"
    46          },
    47          "token": {
    48            "type": "string"
    49          },
    50          "amount": {
    51            "type": "string",
    52            "format": "uint64"
    53          }
    54        }
    55      },
    56      "protobufAny": {
    57        "type": "object",
    58        "properties": {
    59          "type_url": {
    60            "type": "string"
    61          },
    62          "value": {
    63            "type": "string",
    64            "format": "byte"
    65          }
    66        }
    67      },
    68      "runtimeError": {
    69        "type": "object",
    70        "properties": {
    71          "error": {
    72            "type": "string"
    73          },
    74          "code": {
    75            "type": "integer",
    76            "format": "int32"
    77          },
    78          "message": {
    79            "type": "string"
    80          },
    81          "details": {
    82            "type": "array",
    83            "items": {
    84              "$ref": "#/definitions/protobufAny"
    85            }
    86          }
    87        }
    88      }
    89    }
    90  }