{
    "openapi": "3.0.0",
    "info": {
        "title": "PigeonCloud API",
        "description": "PigienCloudの使用可能API一覧",
        "contact": {
            "url": "https://pigeon-fw.com/cloud",
            "email": "info@loftal.jp"
        },
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "/api/v1"
        }
    ],
    "paths": {
        "/table": {
            "get": {
                "summary": "テーブル一覧取得",
                "responses": {
                    "200": {
                        "description": "テーブルの一覧"
                    }
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            }
        },
        "/fields": {
            "get": {
                "summary": "テーブルの項目の取得",
                "parameters": [
                    {
                        "name": "table",
                        "in": "query",
                        "description": "/tableのAPIで取得された、tableの項目の値",
                        "required": true,
                        "style": "form",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {}
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            }
        },
        "/file": {
            "get": {
                "summary": "ファイル取得",
                "parameters": [
                    {
                        "name": "file_info_id",
                        "in": "query",
                        "required": true,
                        "style": "form",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {}
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            }
        },
        "/record": {
            "post": {
                "summary": "レコードを更新",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "table"
                                ],
                                "properties": {
                                    "table": {
                                        "description": "テーブルの値",
                                        "type": "string",
                                        "format": "string",
                                        "example": "dataset__3"
                                    },
                                    "data": {
                                        "description": "レコードのID",
                                        "type": "array",
                                        "items": {
                                            "properties": {
                                                "field__11": {
                                                    "type": "string"
                                                },
                                                "field__12": {
                                                    "type": "string"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {}
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            }
        },
        "/update_record": {
            "post": {
                "summary": "レコードを追加",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "table",
                                    "id"
                                ],
                                "properties": {
                                    "table": {
                                        "description": "テーブルの値",
                                        "type": "string",
                                        "format": "string",
                                        "example": "dataset__3"
                                    },
                                    "data": {
                                        "description": "レコードのID",
                                        "type": "array",
                                        "items": {
                                            "properties": {
                                                "id": {
                                                    "type": "integer",
                                                    "example": "5"
                                                },
                                                "field__11": {
                                                    "type": "string"
                                                },
                                                "field__12": {
                                                    "type": "string"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {}
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            }
        },
        "/delete_record": {
            "post": {
                "summary": "レコードを削除",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "required": [
                                    "table",
                                    "id"
                                ],
                                "properties": {
                                    "table": {
                                        "description": "テーブルの値",
                                        "type": "string",
                                        "format": "string",
                                        "example": "dataset__3"
                                    },
                                    "id": {
                                        "description": "レコードのID",
                                        "type": "array",
                                        "items": {
                                            "type": "integer",
                                            "example": "5"
                                        }
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {}
                },
                "security": [
                    {
                        "api_key": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "api_key": {
                "type": "apiKey",
                "name": "X-Pigeon-Authorization",
                "in": "header"
            }
        }
    }
}