- Enable Pre Post anotations to authorization
- Migrate
Authorization Profiles
toRoles
RoleRepository
implementation- Update
UserService
to manage and create user roles - Implement Security configuration context loader to create base
ROLE_ADMIN
andROLE_USER
if needed - Update
TokenAuthenticationFilterService
due Role repository update - Update signup user mapped data
- Pre authorize creation of value route for
ROLE_USER
- Add
ModelMapper
to turn easier data object serialization and convertion into derived DTOs.- this helps to select object attributes that holds entities relations data
- Readme project explanation
- Standardization of project for
com.github.yangricardo
base package - Lombok classes definition improvement
- Serializing operations of Java classes to JSON objects notation
- Sample of external http rest api call on HttpRequestSampleController
- enable of Spring WebFlux
- Fix Swagger Spring Fox Permitions due Spring Security Integration
-
review source folder structure
-
start spring security integration
- add dependencies
- enable base security configuration context
- create auth controller route
- stateless http security configuration for
/auth
route - add spring AuthtenticationManager to handle authentications
- implement
User
andAuthorizationProfile
based on spring security models - implement IUserReposity following JpaRepository interface
- implement UserService adapter for IUserRepository
- implement AuthenticatonService based on spring UserDetailsService
- IUserRepositiy and UserService update to load user by username
- Add environment variables for Token Service
- TokenIssuerService implementation to issue JWT
- TokenAuthenticationFilter service implementation
- Add JWT token valiations
- Fix User authorization profiles
- add TokenAuthenticationFilterService to security configuration context for HTTP security
- add authentication manager builder with bcrypt password encoder
- login route (before signup)
- signup authentication service
- login and signup routes
- update insomnia with auth routes
-
Bootstrap project
-
spring boot database connection configuration
-
Value Model
-
Value JPA Repository
-
base Value Service
-
autowire Value Service with Value Repository integration
-
value service
- find all values
- create value
- find by id value
- update by id value
- delete by id value
-
values controller resource
-
find all values route:
[GET] /api/values
-
Response Body
[ { "id": 1, "value": "teste" } ]
-
-
create value route:
[POST] /api/values
-
Resquest Body
{ "value": "teste" }
-
Response Body
{ "id": 1, "value": "teste" }
-
-
find by id value route:
[GET] /api/values/{id}
-
Response Body
{ "id": 1, "value": "teste" }
-
-
update by id value route:
[PATCH] /api/values/{id}
-
Resquest Body
{ "value": "teste2" }
-
Response Body
{ "id": 1, "value": "teste2" }
-
-
delete by id value route:
[DELETE] /api/values/{id}
-
-
add value model validation rules
- can not be empty
- can not be blank
- the size must varies from 3 to 255 characters
-
add Valid annotation to validate request body based on value model validation rules to create and update by id routes
-
add PrePersist model event that adds createdAt and updatedAt date
-
add PreUpdate model event that update updatedAt date
-
base model extraction of Long ID, Date createdAt and Date updatedAt columns
-
add UUID unique identifier to base model
-
update delete route to improve response on not found resource
-
create BaseController handlers
- badRequestValidationResponseEntity
-
improve error handles on update value route
-
improve error handles on find by id value route
-
improve error handles on create value route
-
add spring-fox dependency to generate swagger documentation on
http://localhost:8080/api/swagger-ui/#/
-
add ApiOperation annotations to describe the routes
-
api dockerization
-
add insomnia json request collection
-
cross origin definition on BaseController