FiloraFS-Prov1.0.0
FiloraFS-Pro API reference
Try and reference authenticated file, user, and temporary-access endpoints available in FiloraFS-Pro.
Updated
Browser API testing
Run FiloraFS-Pro and open http://localhost:8080/api-test. Register or log in before exercising protected file endpoints.
File endpoints
| Method | Path | Purpose |
|---|---|---|
| POST | /file | Upload a multipart file |
| GET | /file/stream/{id} | Stream a file inline |
| GET | /file/download/{id} | Download an attachment |
| GET | /file/list | List persisted metadata |
| GET | /file/info/{id} | Read persisted metadata |
| DELETE | /file/{id} | Delete a file |
| POST | /file/generate-pre-signed-url | Create temporary access |
| GET | /file/presigned/{token} | Use a local temporary token |
| GET | /file/thumbnail/{id} | Return a thumbnail |
POST/fileBearer JWT
Upload one validated multipart file through the configured local or S3 provider and persist its metadata.
Headers
Authorization: Bearer <access-token>Content-Type: multipart/form-data
Parameters
- file — required multipart file part
Relevant errors
- Unauthorized when the JWT is missing or invalid.
- Validation failure when file size or content type is rejected.
cURL
curl -X POST http://localhost:8080/file \
-H "Authorization: Bearer <access-token>" \
-F "file=@architecture.pdf"GET/file/listBearer JWT
Return persisted file metadata. Add pagination and ownership filtering when required by the application.
Headers
Authorization: Bearer <access-token>
Relevant errors
- Unauthorized when the JWT is missing or invalid.
POST/file/generate-pre-signed-urlBearer JWT
Create temporary access for a local or S3-backed file.
Headers
Authorization: Bearer <access-token>Content-Type: application/json
Relevant errors
- Unauthorized for a missing or invalid JWT.
- Not found when the file does not exist.
Authentication endpoints
| Method | Path | Purpose |
|---|---|---|
| POST | /api/auth/register | Create a user |
| POST | /api/auth/login | Return access and refresh tokens |
| POST | /api/auth/refresh | Return a new token pair |
| POST | /api/auth/logout | Invalidate the refresh session |
User endpoints
| Method | Path | Access |
|---|---|---|
| GET | /api/users/me | Bearer JWT |
| GET | /api/users/profile | Bearer JWT |
| GET | /api/users/all | ROLE_ADMIN |
| GET | /api/users/restricted | ROLE_USER or ROLE_ADMIN |
| GET | /api/users/admin-only | ROLE_ADMIN |