{
    "openapi": "3.0.0",
    "info": {
        "title": "Dronedesk Flight Log Sync API",
        "contact": {
            "name": "Dronedesk Support",
            "email": "support@dronedesk.io"
        },
        "version": "1.0.0"
    },
    "paths": {
        "/flightlogs/create": {
            "post": {
                "tags": [
                    "flightlog"
                ],
                "summary": "Upload a flight log to Dronedesk for processing into the system",
                "operationId": "uploadFlightLog",
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "description": "The users connection token provided by Dronedesk",
                        "required": true,
                        "explode": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "flightlog",
                        "in": "query",
                        "description": "The flight log file to be uploaded",
                        "required": true,
                        "explode": false,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful upload"
                    },
                    "400": {
                        "description": "Invalid request"
                    },
                    "401": {
                        "description": "Unauthorized"
                    }
                }
            }
        }
    }
}