Skip to main content

Mini Project: A Hardened API: Rate Limit, Problem Details, Security Headers

Learn Mini Project: A Hardened API: Rate Limit, Problem Details, Security Headers (Production & Enterprise Spring MVC, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: A Hardened API: Rate Limit, Problem Details, Security Headers Problem Before an API goes public it needs protection against abuse (too many requests), consistent machine-readable errors, safe default headers, and it must never reveal internals. Build all four with a filter and an advice. Requirements Limit each client to 3 requests per window and answer 429 with Retry-After. Return RFC 7807 problem details for validation and not-found errors. Add security headers to every response. Hide the details of unexpected errors. Show a request id in every response. Concepts Used...

More lessons in Production & Enterprise Spring MVC