Releases: OllieEdge/just-another-http-api
Releases · OllieEdge/just-another-http-api
Fastify - Authentication, Caching & Uploads
A fairly comprehensive overhaul of the entire module, including:
- Transition from Restify to Fastify: The project moved from using Restify to Fastify as the server framework. This involved updating various aspects of the server to be compatible with Fastify's architecture and features.
- File Uploads Implementation:
- Implemented file uploading functionality using fastify-multer.
- Handled different storage options: local filesystem, in-memory, and AWS S3.
- Added error handling and validations for file uploads, including checks for the presence of expected fields in multipart form data.
- Caching Mechanism:
- Implemented an optional caching strategy using Redis.
- Handled cache headers and responses for cache hits and misses.
- Configured cache expiry and conditional caching based on request types and endpoints.
- Authentication and Authorisation:
- Implemented JWT-based authentication.
- Authentication checks for routes and endpoint-specific authentication configurations.
- CORS Configuration:
- Configured CORS using @fastify/cors.
- Global CORS endpoint-specific CORS settings.
- Error Handling and Response Formatting:
- Enhanced error handling across the application.
- Standardised response formats, including handling of different content types (HTML, JSON, text) and error responses.
- Created new README.md
First public release
This is the first release of Just Another HTTP API. Please see the readme for more information