{
  "openapi": "3.0.0",
  "info": {
    "title": "ms-fileupload",
    "version": "0.0.1",
    "description": "File Upload",
    "contact": {
      "name": "Luis Marin",
      "email": "tsuluismarin@gmail.com"
    }
  },
  "paths": {
    "/amazon/getfile": {
      "post": {
        "x-controller-name": "AmazonController",
        "x-operation-name": "amazonGetFile",
        "tags": [
          "AmazonController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "fileLink": {
                  "type": "string"
                },
                "example": {
                  "fileLink": "https://bucket-name.s3.amazonaws.com/ba429272-8865-4be6-a090-60d1a405e1c2-20210606170668.png",
                  "shortLink": "https://cdpt.in/NTg3MjYz"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "error": {
                  "type": "object"
                },
                "example": {
                  "error": {
                    "statusCode": 404,
                    "name": "NotFound",
                    "message": null,
                    "code": "NotFound"
                  }
                }
              }
            },
            "description": "Not Found"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "base64"
                ],
                "properties": {
                  "filename": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "description": "Get file from Cloud Storage, receive a base64 string data",
          "required": true
        },
        "operationId": "AmazonController.amazonGetFile"
      }
    },
    "/amazon/upload": {
      "post": {
        "x-controller-name": "AmazonController",
        "x-operation-name": "amazonUpload",
        "tags": [
          "AmazonController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "fileLink": {
                  "type": "string"
                },
                "example": {
                  "fileLink": "https://bucket-name.s3.amazonaws.com/ba429272-8865-4be6-a090-60d1a405e1c2-20210606170668.png",
                  "shortLink": "https://cdpt.in/NTg3MjYz"
                }
              }
            },
            "description": "Success"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "base64",
                  "conversationId"
                ],
                "properties": {
                  "base64": {
                    "type": "string"
                  },
                  "conversationId": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABmJLR0QA/wD/AP+gva...",
                "conversationId": "ba429272-8865-4be6-a090-60d1a405e1c2"
              }
            }
          },
          "description": "Upload file on Cloud Storage, receive a base64 string data",
          "required": true
        },
        "operationId": "AmazonController.amazonUpload"
      }
    },
    "/dropbox/getfile": {
      "post": {
        "x-controller-name": "DropboxController",
        "x-operation-name": "dropboxGetFile",
        "tags": [
          "DropboxController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "fileLink": {
                  "type": "string"
                },
                "example": {
                  "fileLink": "https://content.dropboxapi.com/apitl/1/AyFj68nKwUHPF9CHWgWMxtH2dYq9SU5LzUOlCZ6wQyfeR4xmCqGCIfU0EOl4QhMeCW0WJnAr-cNUuKhSrNSDC0P86dCOgANE6BA_IFUbe98RPFwANJwIA2s43QirFblHMxtD2rll_PWyLr5flUpO0xF4X-k0DjOWgh2Vo0m1TaKPWqwK4gfaB_FMsjyF8JJbbfv2hK8AUdVvuZz1z5dUNx2YUb3THXKo67juR1njAwMAT3rSjmzL5jAV21yxdQx_Rswm-5AXEWDO2xfaOz3u6P9r7yiebK3WvgVIElSN3qx4XspD2qVtGyNx3wWR5FKqbwMVcOQO31ldUGq2vsOswYy86Iqvj9g-2zvS99o_cmS0nZi2G-3RdWsi_oabGGb-UIi46jm_DZgzJCDUUjbhRaaz",
                  "shortLink": "https://cdpt.in/NTg3MjYz"
                }
              }
            },
            "description": "Files and fields"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "base64"
                ],
                "properties": {
                  "filename": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "description": "Get file from Cloud Storage, receive a base64 string data",
          "required": true
        },
        "operationId": "DropboxController.dropboxGetFile"
      }
    },
    "/dropbox/upload": {
      "post": {
        "x-controller-name": "DropboxController",
        "x-operation-name": "dropboxUpload",
        "tags": [
          "DropboxController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "fileLink": {
                  "type": "string"
                },
                "example": {
                  "fileLink": "https://content.dropboxapi.com/apitl/1/AyFj68nKwUHPF9CHWgWMxtH2dYq9SU5LzUOlCZ6wQyfeR4xmCqGCIfU0EOl4QhMeCW0WJnAr-cNUuKhSrNSDC0P86dCOgANE6BA_IFUbe98RPFwANJwIA2s43QirFblHMxtD2rll_PWyLr5flUpO0xF4X-k0DjOWgh2Vo0m1TaKPWqwK4gfaB_FMsjyF8JJbbfv2hK8AUdVvuZz1z5dUNx2YUb3THXKo67juR1njAwMAT3rSjmzL5jAV21yxdQx_Rswm-5AXEWDO2xfaOz3u6P9r7yiebK3WvgVIElSN3qx4XspD2qVtGyNx3wWR5FKqbwMVcOQO31ldUGq2vsOswYy86Iqvj9g-2zvS99o_cmS0nZi2G-3RdWsi_oabGGb-UIi46jm_DZgzJCDUUjbhRaaz",
                  "shortLink": "https://cdpt.in/NTg3MjYz"
                }
              }
            },
            "description": "Files and fields"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "base64",
                  "conversationId"
                ],
                "properties": {
                  "base64": {
                    "type": "string"
                  },
                  "conversationId": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABmJLR0QA/wD/AP+gva...",
                "conversationId": "ba429272-8865-4be6-a090-60d1a405e1c2"
              }
            }
          },
          "description": "Upload file on Cloud Storage, receive a base64 string data",
          "required": true
        },
        "operationId": "DropboxController.dropboxUpload"
      }
    },
    "/fileupload/getfile": {
      "post": {
        "x-controller-name": "FileuploadController",
        "x-operation-name": "getFile",
        "tags": [
          "FileuploadController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "fileLink": {
                  "type": "string"
                },
                "example": {
                  "fileLink": "https://bucket-name.s3.amazonaws.com/ba429272-8865-4be6-a090-60d1a405e1c2-20210606170668.png",
                  "shortLink": "https://cdpt.in/NTg3MjYz"
                }
              }
            },
            "description": "Success"
          },
          "404": {
            "content": {
              "application/json": {
                "error": {
                  "type": "object"
                },
                "example": {
                  "error": {
                    "statusCode": 404,
                    "name": "NotFound",
                    "message": null,
                    "code": "NotFound"
                  }
                }
              }
            },
            "description": "Not Found"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "base64"
                ],
                "properties": {
                  "filename": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "description": "Get file from Cloud Storage, receive a base64 string data",
          "required": true
        },
        "operationId": "FileuploadController.getFile"
      }
    },
    "/fileupload/upload": {
      "post": {
        "x-controller-name": "FileuploadController",
        "x-operation-name": "upload",
        "tags": [
          "FileuploadController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "fileLink": {
                  "type": "string"
                },
                "example": {
                  "fileLink": "https://bucket-name.s3.amazonaws.com/ba429272-8865-4be6-a090-60d1a405e1c2-20210606170668.png",
                  "shortLink": "https://cdpt.in/NTg3MjYz"
                }
              }
            },
            "description": "Success"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "base64",
                  "conversationId"
                ],
                "properties": {
                  "base64": {
                    "type": "string"
                  },
                  "conversationId": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABmJLR0QA/wD/AP+gva...",
                "conversationId": "ba429272-8865-4be6-a090-60d1a405e1c2"
              }
            }
          },
          "description": "Upload file on Cloud Storage, receive a base64 string data",
          "required": true
        },
        "operationId": "FileuploadController.upload"
      }
    },
    "/ping": {
      "get": {
        "x-controller-name": "PingController",
        "x-operation-name": "ping",
        "tags": [
          "PingController"
        ],
        "responses": {
          "200": {
            "description": "Ping Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingResponse"
                }
              }
            }
          }
        },
        "operationId": "PingController.ping"
      }
    }
  },
  "servers": [
    {
      "url": "https://msfileupload.luvik.adacx.ai"
    }
  ],
  "components": {
    "schemas": {
      "PingResponse": {
        "type": "object",
        "title": "PingResponse",
        "properties": {
          "greeting": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "headers": {
            "type": "object",
            "properties": {
              "Content-Type": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        }
      }
    }
  }
}