Skip to content

OpenAPI generatorによるファイル入出力コードの自動生成について #1737

Closed Answered by fkoyama
1nu1taichi asked this question in 05: Q&A
Discussion options

You must be logged in to vote

上記のバックエンドの実装で、OpenAPI generatorが生成するgetFileBinaryZipのコードは以下の通り。

  • OpenAPI定義書
"paths": {
"/api/files/{id}": {
      "get": {
        "operationId": "getFileBinaryZip",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "description": "

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tsuna-can-se
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants