Skip to content

Releases: OllieEdge/just-another-http-api

Fastify - Authentication, Caching & Uploads

21 Nov 18:15
Compare
Choose a tag to compare

A fairly comprehensive overhaul of the entire module, including:

  1. 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.
  2. 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.
  1. 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.
  1. Authentication and Authorisation:
  • Implemented JWT-based authentication.
  • Authentication checks for routes and endpoint-specific authentication configurations.
  1. CORS Configuration:
  • Configured CORS using @fastify/cors.
  • Global CORS endpoint-specific CORS settings.
  1. 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.
  1. Created new README.md

First public release

24 May 15:28
Compare
Choose a tag to compare

This is the first release of Just Another HTTP API. Please see the readme for more information