List Bag Directories
GET/api/v1/bags/dirs
Returns the immediate subdirectories available under BAGS_FS. Use these values as the path query param for GET /api/v1/bags. "." is included when .bag files exist directly in the root. The trash directory is only included for the developer role.
Request
Responses
- 200
- 404
- 500
Bag directories fetched successfully
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
data string[]required
{
"success": true,
"message": "string",
"data": [
".",
"critical_bags",
"normal_bags"
]
}
BAGS_FS root directory not found
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Loading...