Skip to content

Latest commit

 

History

History
155 lines (126 loc) · 4.49 KB

CHANGELOG.md

File metadata and controls

155 lines (126 loc) · 4.49 KB

Changelog

2022.01.17

  • Enable Pre Post anotations to authorization
  • Migrate Authorization Profiles to Roles
  • RoleRepository implementation
  • Update UserService to manage and create user roles
  • Implement Security configuration context loader to create base ROLE_ADMIN and ROLE_USER if needed
  • Update TokenAuthenticationFilterService due Role repository update
  • Update signup user mapped data
  • Pre authorize creation of value route for ROLE_USER

2021.12.10

  • Add ModelMapper to turn easier data object serialization and convertion into derived DTOs.
    • this helps to select object attributes that holds entities relations data

2021.11.20

  • 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

2021.11.18

  • 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 and AuthorizationProfile 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

2021.11.17

  • 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