...

Text file src/github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb/remove_internal_comment.swagger.json

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "title": "examples/internal/proto/examplepb/remove_internal_comment.proto",
     5    "version": "version not set"
     6  },
     7  "tags": [
     8    {
     9      "name": "Foo2Service"
    10    }
    11  ],
    12  "consumes": [
    13    "application/json"
    14  ],
    15  "produces": [
    16    "application/json"
    17  ],
    18  "paths": {
    19    "/v1/example/foo": {
    20      "post": {
    21        "summary": "Foo Summary",
    22        "description": "Description",
    23        "operationId": "Foo2Service_Foo2",
    24        "responses": {
    25          "200": {
    26            "description": "A successful response.",
    27            "schema": {
    28              "$ref": "#/definitions/examplepbFoo2Reply"
    29            }
    30          },
    31          "default": {
    32            "description": "An unexpected error response.",
    33            "schema": {
    34              "$ref": "#/definitions/rpcStatus"
    35            }
    36          }
    37        },
    38        "parameters": [
    39          {
    40            "name": "body",
    41            "in": "body",
    42            "required": true,
    43            "schema": {
    44              "$ref": "#/definitions/examplepbFoo2Request"
    45            }
    46          }
    47        ],
    48        "tags": [
    49          "Foo2Service"
    50        ]
    51      }
    52    }
    53  },
    54  "definitions": {
    55    "examplepbFoo2Reply": {
    56      "type": "object"
    57    },
    58    "examplepbFoo2Request": {
    59      "type": "object",
    60      "properties": {
    61        "username": {
    62          "type": "string",
    63          "description": "Username.\nSame row, single line break doesn't count on markdown."
    64        },
    65        "password": {
    66          "type": "string",
    67          "description": "Password.\n\nNew row."
    68        }
    69      },
    70      "title": "Foo2Request"
    71    },
    72    "protobufAny": {
    73      "type": "object",
    74      "properties": {
    75        "@type": {
    76          "type": "string"
    77        }
    78      },
    79      "additionalProperties": {}
    80    },
    81    "rpcStatus": {
    82      "type": "object",
    83      "properties": {
    84        "code": {
    85          "type": "integer",
    86          "format": "int32"
    87        },
    88        "message": {
    89          "type": "string"
    90        },
    91        "details": {
    92          "type": "array",
    93          "items": {
    94            "type": "object",
    95            "$ref": "#/definitions/protobufAny"
    96          }
    97        }
    98      }
    99    }
   100  }
   101}

View as plain text