github.com/codefly-dev/core@v0.1.107/resources/testdata/endpoints_po/swagger/path_removed.swagger.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "api.proto",
     5      "version": "version not set"
     6    },
     7    "tags": [
     8      {
     9        "name": "OrganizationService"
    10      }
    11    ],
    12    "consumes": [
    13      "application/json"
    14    ],
    15    "produces": [
    16      "application/json"
    17    ],
    18    "paths": {
    19      "/organization": {
    20        "get": {
    21          "operationId": "OrganizationService_GetOrganization",
    22          "responses": {
    23            "200": {
    24              "description": "A successful response.",
    25              "schema": {
    26                "$ref": "#/definitions/apiGetOrganizationResponse"
    27              }
    28            },
    29            "default": {
    30              "description": "An unexpected error response.",
    31              "schema": {
    32                "$ref": "#/definitions/rpcStatus"
    33              }
    34            }
    35          },
    36          "tags": [
    37            "OrganizationService"
    38          ]
    39        },
    40        "post": {
    41          "operationId": "OrganizationService_CreateOrganization",
    42          "responses": {
    43            "200": {
    44              "description": "A successful response.",
    45              "schema": {
    46                "$ref": "#/definitions/apiCreateOrganizationResponse"
    47              }
    48            },
    49            "default": {
    50              "description": "An unexpected error response.",
    51              "schema": {
    52                "$ref": "#/definitions/rpcStatus"
    53              }
    54            }
    55          },
    56          "parameters": [
    57            {
    58              "name": "body",
    59              "in": "body",
    60              "required": true,
    61              "schema": {
    62                "$ref": "#/definitions/apiCreateOrganizationRequest"
    63              }
    64            }
    65          ],
    66          "tags": [
    67            "OrganizationService"
    68          ]
    69        }
    70      }
    71    },
    72    "definitions": {
    73      "apiCreateOrganizationRequest": {
    74        "type": "object",
    75        "properties": {
    76          "name": {
    77            "type": "string"
    78          },
    79          "domain": {
    80            "type": "string"
    81          }
    82        }
    83      },
    84      "apiCreateOrganizationResponse": {
    85        "type": "object",
    86        "properties": {
    87          "organization": {
    88            "$ref": "#/definitions/apiOrganization"
    89          }
    90        }
    91      },
    92      "apiGetOrganizationResponse": {
    93        "type": "object",
    94        "properties": {
    95          "organization": {
    96            "$ref": "#/definitions/apiOrganization"
    97          }
    98        }
    99      },
   100      "apiOrganization": {
   101        "type": "object",
   102        "properties": {
   103          "id": {
   104            "type": "string"
   105          },
   106          "name": {
   107            "type": "string"
   108          },
   109          "domain": {
   110            "type": "string"
   111          }
   112        },
   113        "description": "TODO: Fix the buf..."
   114      },
   115      "apiVersionResponse": {
   116        "type": "object",
   117        "properties": {
   118          "version": {
   119            "type": "string"
   120          }
   121        }
   122      },
   123      "protobufAny": {
   124        "type": "object",
   125        "properties": {
   126          "@type": {
   127            "type": "string"
   128          }
   129        },
   130        "additionalProperties": {}
   131      },
   132      "rpcStatus": {
   133        "type": "object",
   134        "properties": {
   135          "code": {
   136            "type": "integer",
   137            "format": "int32"
   138          },
   139          "message": {
   140            "type": "string"
   141          },
   142          "details": {
   143            "type": "array",
   144            "items": {
   145              "type": "object",
   146              "$ref": "#/definitions/protobufAny"
   147            }
   148          }
   149        }
   150      }
   151    }
   152  }