In the last recap session, we take a look at doing validations.
One way of handling errors in Spring MVC is by declaring a responsible class using the @ControllerAdvice annotation.
Swagger is a tool for documenting APIs, primarily driven from a coding side and a universal docs client.
When our API is used by anything running in a browser and it this thing running in the browser was not loaded from the same domain our API is running, we will encounter a concept called CORS.
I’ve been working on the Kanban tutorial app to make it a better tutorial application. This week, I am going to talk about changes and why and how I implemented them.
Our API works now. We can register a new user, log in via the API, authenticate via token in a header and can work with the kanban board. So, we are done for now.
Now that we can register a new user and login, it is time for assigning boards to the logged in user.
We will be using Spring Session with a JDBC storage and use the same database as for the rest of the application.
The API will expose endpoints for login and register new users.
Now, we are ready to set up the user and configure Spring Security to protect our API.