- write a Spring Boot application with the necessary dependencies that:
- has 2 controllers:
BasicController
that:- is mapped on
time
- returns the current date/time
- is mapped on
LegacyController
that:- is mapped on
legacy
- returns
This is just old code
- is mapped on
- has 2 interceptors/middleware:
APILoggingInterceptor
that prints in the console the requests headerUser-Agent
, before handling themLegacyIntercepotr
that:- blocks the API calls to the
legacy
endpoint - 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.json
under the root
-
Notifications
You must be signed in to change notification settings - Fork 0
fconsiglio98/interceptors-middleware-1
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published