Skip to content

Del WebConfig, add @CrossOrigin#50

Merged
LordRenDS merged 1 commit intodevfrom
WebConfig
Mar 26, 2023
Merged

Del WebConfig, add @CrossOrigin#50
LordRenDS merged 1 commit intodevfrom
WebConfig

Conversation

@LordRenDS
Copy link

No description provided.

@LordRenDS LordRenDS changed the title Del WebConfig, add @@CrossOrigin Del WebConfig, add @CrossOrigin Mar 26, 2023
@LordRenDS LordRenDS merged commit 520855d into dev Mar 26, 2023
@LordRenDS LordRenDS deleted the WebConfig branch March 26, 2023 18:43
LordRenDS added a commit that referenced this pull request Mar 26, 2023
Delete WebConfig (#52)

Add WebConfig (#48)
LordRenDS added a commit that referenced this pull request Mar 26, 2023
Delete WebConfig (#52)

Add WebConfig (#48)
Maslyna added a commit that referenced this pull request Apr 3, 2023
* Db repo (#31)

* Configure project

* Create prepopulate sql scripts

* Create DTO for talent

* Create talent entity and related tables

* Create base SecurityConfig and TalentRepository

* Edit config and add dependencies

* Edit data and schema

* Edit entity and dto: remove @NotNull from different linked tables, remove some fields from ShortTalent

* Add to schema table: user_info, authority and user_authority

* Create entity: UserInfo, Authority and UserAuthority

* Create UserInfoRepository

* Updated TalentController
Created TalentEntityRepository
Updated TalentRepository
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)

* Created TalentExceptionHandler
Updated TalentController
Updated TalentRepository
Created TalentEntityRepository
Created FullTalentDTO
Created TalentServiceMock
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)
Added simple exception handling

* Updated TalentController: Added new endpoint `GET(/talents/{id})`, that returns to us the FullTalentDTO
Updated FullTalentDTO
Updated TalentMapper
Updated TalentService

* Refactored project structure
Created pagination.properties

* BUGFIX: `BeanDefinitionStoreException: Failed to parse configuration class [com.provedcode.config.PageConfig]` (#33)

* user-story-1 (#35)

* Updated project structure

* Refactored code

* Added profiles

* bugfix (#36)

bugfix: java.io.FileNotFoundException: Could not open ServletContext resource [/pagination.properties]

* Add WebConfig (#48)

* Add @crossorigin to TalentController (#50)

* Delete WebConfig (#52)

* data.sql Update

* Edit data.sql and schema.sql

* Edit UserInfo: add user_id and @NotNull, @notempty validations

* Edit UserInfo: add @builder, @AllArgsConstructor, @NoArgsConstructor

* commit 1

* commit 2

* BugFix

* commit 3

* Edit UserAuthorityRepository, AuthenticationController, SecurityConfig and TalentServiceImpl

* Create trash in AuthenticationController

* Code refactor
BugFix: nullPointerExceptions in TalentMapperImpl were removed

* BugFix: don`t ask me

* Add enum Role, add findByAuthority to AuthorityRepository, do some refactor

* Refactored code
User registration returns jwt-token

* Refactored code
Created SessionInfoDTO

* Refactored code
Added annotation @UrlList

* Delete unused files

---------

Co-authored-by: Ren <75202059+LordRenDS@users.noreply.github.com>
Co-authored-by: Ren <sergeysolovyov2016@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant