{
  "opencollection": "1.0.0",
  "info": {
    "name": "FOSSology Admin Folders API",
    "version": "1.6.2"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Folders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get the list of accessible folders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost/repo/api/v1/folders",
            "headers": [
              {
                "name": "groupName",
                "value": ""
              }
            ]
          },
          "docs": "Get all folders or from a specific group\n"
        },
        {
          "info": {
            "name": "Create a new folder",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost/repo/api/v1/folders",
            "headers": [
              {
                "name": "groupName",
                "value": ""
              },
              {
                "name": "parentFolder",
                "value": ""
              },
              {
                "name": "folderName",
                "value": ""
              },
              {
                "name": "folderDescription",
                "value": ""
              }
            ]
          },
          "docs": "Create a new child folder with optional description\n"
        },
        {
          "info": {
            "name": "Get a single folder details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost/repo/api/v1/folders/:id",
            "headers": [
              {
                "name": "groupName",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the folder"
              }
            ]
          },
          "docs": "Get a single folder by id"
        },
        {
          "info": {
            "name": "Copy/Move a folder",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost/repo/api/v1/folders/:id",
            "headers": [
              {
                "name": "groupName",
                "value": ""
              },
              {
                "name": "parent",
                "value": ""
              },
              {
                "name": "action",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the folder"
              }
            ]
          },
          "docs": "Copy or move a folder by id\n"
        },
        {
          "info": {
            "name": "Edit a folder's description",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost/repo/api/v1/folders/:id",
            "headers": [
              {
                "name": "groupName",
                "value": ""
              },
              {
                "name": "name",
                "value": ""
              },
              {
                "name": "description",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the folder"
              }
            ]
          },
          "docs": "Change a folder's name and/or description\n"
        },
        {
          "info": {
            "name": "Delete a folder",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://localhost/repo/api/v1/folders/:id",
            "headers": [
              {
                "name": "groupName",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the folder"
              }
            ]
          },
          "docs": "Schedule a folder deletion\n"
        },
        {
          "info": {
            "name": "Unlink a content from a folder",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost/repo/api/v1/folders/contents/:contentId/unlink",
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path",
                "description": "ID of the content"
              }
            ]
          },
          "docs": "Unlink a content from a folder"
        },
        {
          "info": {
            "name": "Get all contents of a folder",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost/repo/api/v1/folders/:id/contents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the folder"
              }
            ]
          },
          "docs": "Get all contents of a folder by id"
        },
        {
          "info": {
            "name": "Get contents of a folder which can be unlinked",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost/repo/api/v1/folders/:id/contents/unlinkable",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "ID of the folder"
              }
            ]
          },
          "docs": "Get unlinkable contents of a folder by id. These contents are copied."
        }
      ]
    }
  ],
  "bundled": true
}