{
  "openapi": "3.1.0",
  "info": {
    "title": "folders-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.trint.com/folders"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "List Folders",
        "description": "List folders",
        "operationId": "folders",
        "parameters": [
          {
            "name": "workspace-id",
            "in": "query",
            "description": "The ID of given workspace/shared drive",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[{\n  _id: 'folder-1',\n  name: 'Folder 1',\n}, {\n  _id: 'folder-2',\n  name: 'Folder 2',\n}, {\n  _id: 'folder-3',\n  name: 'Nested Folder',\n  parent: 'folder-2',\n}]"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      },
      "post": {
        "summary": "Create Folder",
        "description": "Create folder",
        "operationId": "page-1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name"],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Folder name"
                  },
                  "parentId": {
                    "type": "string",
                    "description": "Parent id for nested folders"
                  },
                  "workspaceId": {
                    "type": "string",
                    "description": "ID of desired workspace/shared drive"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    },
    "/folder": {
      "get": {
        "summary": "Retrieve Folder",
        "description": "",
        "operationId": "retrieve-folder",
        "parameters": [
          {
            "name": "folderId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspaceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
