github.com/codefly-dev/core@v0.1.107/resources/testdata/endpoints/basic/openapi/api.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      "/version": {
    72        "get": {
    73          "operationId": "OrganizationService_Version",
    74          "responses": {
    75            "200": {
    76              "description": "A successful response.",
    77              "schema": {
    78                "$ref": "#/definitions/apiVersionResponse"
    79              }
    80            },
    81            "default": {
    82              "description": "An unexpected error response.",
    83              "schema": {
    84                "$ref": "#/definitions/rpcStatus"
    85              }
    86            }
    87          },
    88          "tags": [
    89            "OrganizationService"
    90          ]
    91        }
    92      }
    93    },
    94    "definitions": {
    95      "apiCreateOrganizationRequest": {
    96        "type": "object",
    97        "properties": {
    98          "name": {
    99            "type": "string"
   100          },
   101          "domain": {
   102            "type": "string"
   103          }
   104        }
   105      },
   106      "apiCreateOrganizationResponse": {
   107        "type": "object",
   108        "properties": {
   109          "organization": {
   110            "$ref": "#/definitions/apiOrganization"
   111          }
   112        }
   113      },
   114      "apiGetOrganizationResponse": {
   115        "type": "object",
   116        "properties": {
   117          "organization": {
   118            "$ref": "#/definitions/apiOrganization"
   119          }
   120        }
   121      },
   122      "apiOrganization": {
   123        "type": "object",
   124        "properties": {
   125          "id": {
   126            "type": "string"
   127          },
   128          "name": {
   129            "type": "string"
   130          },
   131          "domain": {
   132            "type": "string"
   133          }
   134        },
   135        "description": "TODO: Fix the buf..."
   136      },
   137      "apiVersionResponse": {
   138        "type": "object",
   139        "properties": {
   140          "version": {
   141            "type": "string"
   142          }
   143        }
   144      },
   145      "protobufAny": {
   146        "type": "object",
   147        "properties": {
   148          "@type": {
   149            "type": "string"
   150          }
   151        },
   152        "additionalProperties": {}
   153      },
   154      "rpcStatus": {
   155        "type": "object",
   156        "properties": {
   157          "code": {
   158            "type": "integer",
   159            "format": "int32"
   160          },
   161          "message": {
   162            "type": "string"
   163          },
   164          "details": {
   165            "type": "array",
   166            "items": {
   167              "type": "object",
   168              "$ref": "#/definitions/protobufAny"
   169            }
   170          }
   171        }
   172      }
   173    }
   174  }