FilemanagerDirectories
Last updated
Last updated
FilemanagerDirectories
represent a folder on the filesystem. The path
of a folder describes how to retrieve it when it's displayed.
There is no direct relation to FilemanagerFiles. The resolution of files and directories is done by their path
property.
Alias
filemanagerDirectory
Relations
Relation | Key | Type | Relation Field(s) |
---|---|---|---|
Computed Properties
name
- The basename of the FilemanagerDirectory
Traits
SoftDeletes
Get a list of all FilemanagerDirectories
the current authenticated User is allowed to view.
You can use the filters matches_path
and matches_path_recursive
on routes of this module. However, the response time of the list action can be considerably high because of recursive permission handling. You might want to use the list by path action for tasks regarding a specific path.
Definition
GET
/api/filemanager/directories
Example Request
Example Response
Get a list of all FilemanagerDirectories
by given {path}
the current authenticated User is allowed to view.
If you don't pass a value for {path}
a call to the root folder will be assumed.
Definition
GET
/api/filemanager/directories/path/{path}
Example Request
Example Response
Get the count of all FilemanagerDirectories
the current authenticated User is allowed to view.
Definition
GET
/api/filemanager/directories/count
Example Request
Example Response
Show a single FilemanagerDirectory
by id
.
Definition
GET
/api/filemanager/directories/{id}
Example Request
Example Response
Show information about a FilemanagerDirectory
by id
.
Definition
GET
/api/filemanager/directories/{id}/information
Example Request
Example Response
Download a ZIP of a FilemanagerDirectory
by id
.
Definition
GET
/api/filemanager/directories/{id}/download
Example Request
Create a new FilemanagerDirectory
.
Definition
POST
/api/filemanager/directories
Request Keys
Keys with *
are required.
When department_ids
and user_ids
are present, department_ids
get preferred.
If both are empty, the FilemanagerDirectory
will be public.
Example Request
Example Response
Update an existing FilemanagerDirectory
by id
.
Definition
PUT
/api/filemanager/directories/{id}
Request Keys
Example Request
Example Response
Delete an existing FilemanagerDirectory
by id
.
Definition
DELETE
/api/filemanager/directories/{id}
Example Request
Example Response
Key | Type | Default | Description |
---|---|---|---|
Key | Type | Description |
---|---|---|
user
Belongs to
user_id
users
Belongs to many
Intermediate table
departments
Belongs to many
Intermediate table
path
*
string
-
Relative path of the FilemanagerDirectory
(normalized to include leading and trailing /
)
department_ids
string
null
The Departments that are allowed to see the FilemanagerDirectory
(seperated by comma)
user_ids
string
null
The Users that are allowed to see the FilemanagerDirectory
(seperated by comma)
path
string
Relative path of the FilemanagerDirectory
(normalized to include leading and trailing /
)
department_ids
string
The Departments that are allowed to see the FilemanagerDirectory
(seperated by comma)
user_ids
string
The Users that are allowed to see the FilemanagerDirectory
(seperated by comma)