- write a Spring Boot application with the necessary dependencies that:
- has 2 controllers:
BasicControllerthat:- is mapped on
time - returns the current date/time
- is mapped on
LegacyControllerthat:- is mapped on
legacy - returns
This is just old code
- is mapped on
- has 2 interceptors/middleware:
APILoggingInterceptorthat prints in the console the requests headerUser-Agent, before handling themLegacyIntercepotrthat:- blocks the API calls to the
legacyendpoint - returns a response with the right HTTP code status for
Gone
- blocks the API calls to the
- has 2 controllers:
- test the 2 API endpoint calls using
Postman - for reviewers:
Postman's API calls collection is inInterceptors-1.postman_collection.jsonunder the root
-
Notifications
You must be signed in to change notification settings - Fork 0
iWIPER/API-Interceptor-Middleware-01
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published