Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Api client generation && swagger configuration #14

Merged
merged 9 commits into from
Jun 1, 2022

Conversation

lipa44
Copy link
Member

@lipa44 lipa44 commented May 28, 2022

#12 Issue

@lipa44 lipa44 added the architecture Some architecture stuff... label May 28, 2022
@lipa44 lipa44 added this to the Sprint 1 milestone May 28, 2022
@lipa44 lipa44 self-assigned this May 28, 2022
@lipa44 lipa44 linked an issue May 30, 2022 that may be closed by this pull request
1 task
# Conflicts:
#	Infrastructure/Do-Svyazi.User.Web.Api/Startup.cs
@lipa44 lipa44 changed the title feat: Api client generation feat: Api client generation && swagger configuration May 30, 2022
@lipa44 lipa44 requested a review from ronimizy May 31, 2022 09:06
Copy link
Collaborator

@ronimizy ronimizy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

верю

@lipa44
Copy link
Member Author

lipa44 commented May 31, 2022

верю

ладно.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 1, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@lipa44 lipa44 merged commit cb6e25f into dev Jun 1, 2022
lipa44 added a commit that referenced this pull request Jun 3, 2022
* Initial commit

* fix: DbContext configuration fixed

* fix: small CQRS implementation changes

* fix: `set;` replaced with `init;` in DbContext

* fix: `List` replaced with `IReadOnlyCollection` in requests

* fix: `GetChatById` performance improved

* fix: duplicate properties removed from chat entities

* fix: performance improved in `SetUserNickNameById`

* fix: exception throwing added

* fix: new exception added

* fix: `appsettings.json` file configured

* fix: connection string configured to get from appSettings.json

* chore: project structure fixed with merging `Application.Abstractions` into `Application`

* Revert "chore: project structure fixed with merging `Application.Abstractions` into `Application`"

This reverts commit ea45b77.

* fix: more fixes linked with merging `Application.Abstractions`

* feat: StyleCop configuration added

* feat: `.editorconfig` fixed and new project codestyle supported

* fix: one more fix linked with `Application.Abstractions`

* add: baseRoles to Channel, + remove UserId

* add: admin/user role to all type of chats

* fix: add new actions

* fix: remove separate lines in Role.cs

* fix: create constructors with properties

* fix: add base() + change message to messages

* feat: DeleteUser operation

* fix: secutiry tips (#20)

fix: environment type check added

* Create pull_request_template.md

* fix: `pull-request-template.md` moved to the `.github` folder

* docs: `pull_request_template.md` fixed

(cherry picked from commit aafb694)

* feat: add update, delete, create

* feat: add all update methods

* feat: add commands to controller

* feat: add find methods with chat

* Feature/8 implement chat entities methods (#18)

* add: virtual methods in base chat

* refactor: change exceptions, change List on IReadOnlyCollection

* refactor: add constructors

* fix: namespaces fixed

* refactor: change exception, methods add/remove user did abstract

* refactor: change add/remove role on abstract method

* refactor: implementing add/remove user/role

* refactor: change ChatUser on MessengerUser

* refactor: change message exception

* feat: add method change user role

* style: codestyle fixes

* feat: EF configured for Chats

Co-authored-by: Mikhail Libchenko <[email protected]>

* feat: merge dev + refactor add chat to user method

* fix: exceptions handling + naming

* feat: change set to private set and make public setters

* fix: edit messengerUser constructor

* fix: default descr value

* feat: Api client generation && swagger configuration (#14)

* feat: NSwag added and configured

* feat: TS && CSharp clients generated

* fix: Exception for ApiClients renamed

* feat: `package.json` files added

* fix: clients moved to Frontend and Backend projects and nuget package configured

* feat: change return types

* feat: add private methods to check exists

* fix: add not and fix naming

* fix: isUserExistMethod

* Feature/5 crud for chats (#23)

* feat: add Commands and Queries

* refactor: initialized standard role in constructor

* feat: add chat controller

* feat: add Creator Chat

* refactor: add List Users and mapping

* refactor: change properties in chat

* refactor: added response on created chat

* fix: Ef configured for domain entities and errors fixed

* fix: missed lines uncommented

* chore: merged `dev` into `feature/5-crud-for-chats` and resolved conflicts

* feat: updated ApiClients

* chore: package version updated

* refactor: change exceptions message

* refactor: change add/remove user to chat

* fix: small fixes

* feat: ApiClients updated

* fix: package version updated

Co-authored-by: Mikhail Libchenko <[email protected]>

Co-authored-by: iskander-faggod <[email protected]>
Co-authored-by: KotDimos <[email protected]>
lipa44 added a commit that referenced this pull request Jun 16, 2022
* Initial commit

* fix: DbContext configuration fixed

* fix: small CQRS implementation changes

* fix: `set;` replaced with `init;` in DbContext

* fix: `List` replaced with `IReadOnlyCollection` in requests

* fix: `GetChatById` performance improved

* fix: duplicate properties removed from chat entities

* fix: performance improved in `SetUserNickNameById`

* fix: exception throwing added

* fix: new exception added

* fix: `appsettings.json` file configured

* fix: connection string configured to get from appSettings.json

* chore: project structure fixed with merging `Application.Abstractions` into `Application`

* Revert "chore: project structure fixed with merging `Application.Abstractions` into `Application`"

This reverts commit ea45b77.

* fix: more fixes linked with merging `Application.Abstractions`

* feat: StyleCop configuration added

* feat: `.editorconfig` fixed and new project codestyle supported

* fix: one more fix linked with `Application.Abstractions`

* add: baseRoles to Channel, + remove UserId

* add: admin/user role to all type of chats

* fix: add new actions

* fix: remove separate lines in Role.cs

* fix: create constructors with properties

* fix: add base() + change message to messages

* feat: DeleteUser operation

* fix: secutiry tips (#20)

fix: environment type check added

* Create pull_request_template.md

* fix: `pull-request-template.md` moved to the `.github` folder

* docs: `pull_request_template.md` fixed

(cherry picked from commit aafb694)

* feat: add update, delete, create

* feat: add all update methods

* feat: add commands to controller

* feat: add find methods with chat

* Feature/8 implement chat entities methods (#18)

* add: virtual methods in base chat

* refactor: change exceptions, change List on IReadOnlyCollection

* refactor: add constructors

* fix: namespaces fixed

* refactor: change exception, methods add/remove user did abstract

* refactor: change add/remove role on abstract method

* refactor: implementing add/remove user/role

* refactor: change ChatUser on MessengerUser

* refactor: change message exception

* feat: add method change user role

* style: codestyle fixes

* feat: EF configured for Chats

Co-authored-by: Mikhail Libchenko <[email protected]>

* feat: merge dev + refactor add chat to user method

* fix: exceptions handling + naming

* feat: change set to private set and make public setters

* fix: edit messengerUser constructor

* fix: default descr value

* feat: Api client generation && swagger configuration (#14)

* feat: NSwag added and configured

* feat: TS && CSharp clients generated

* fix: Exception for ApiClients renamed

* feat: `package.json` files added

* fix: clients moved to Frontend and Backend projects and nuget package configured

* feat: change return types

* feat: add private methods to check exists

* fix: add not and fix naming

* fix: isUserExistMethod

* Feature/5 crud for chats (#23)

* feat: add Commands and Queries

* refactor: initialized standard role in constructor

* feat: add chat controller

* feat: add Creator Chat

* refactor: add List Users and mapping

* refactor: change properties in chat

* refactor: added response on created chat

* fix: Ef configured for domain entities and errors fixed

* fix: missed lines uncommented

* chore: merged `dev` into `feature/5-crud-for-chats` and resolved conflicts

* feat: updated ApiClients

* chore: package version updated

* refactor: change exceptions message

* refactor: change add/remove user to chat

* fix: small fixes

* feat: ApiClients updated

* fix: package version updated

Co-authored-by: Mikhail Libchenko <[email protected]>

* feat: add CreateRoleForChat.cs

* feat: add in controller

* feat: change chat role

* fix: GetRoleByUserId.cs

* feat: я ненавижу entity framework aka add role table in context

* fix: NSwag client generation configured better (#30)

* feat: change role by userId

* fix: я уже не могу придумывать названия

* fix: remove try+catch, get chatuser logic

* fix: change dto to unit.value

* fix: remove useless check to role.Name

* fix: add command in controller + test all endpoints

* fix: naming

* feat: auth

* fix: create new db file and ignore some fields

* fix: insert logic into commands

* Testing/unit tests for cqrs (#32)

* Initial commit

* feat: test structure added

* fix: some fixes

* refactor: changed return to entity

* refactor: add tests

* feat: add tests for user

* Revert "refactor: changed return to entity"

This reverts commit 985b2c4.

* refactor: add FluentAssertions, change create chat and user

* fix: some test tips

* fix: small conflict resolved

* refactor: change check entity

* chore: tests moved to separate solution folder

* style: namespaces fixed

* style: small codestyle fixes and etc.

* fix: public empty ctor changed to protected

Co-authored-by: Mikhail Libchenko <[email protected]>

* fix: return type + delete useless di

* fix: merge if-statements + hours add to appsettings.json

* refactor: codestyle and other tips (#37)

* Initial commit

* feat: test structure added

* fix: some fixes

* refactor: changed return to entity

* refactor: add tests

* feat: add tests for user

* Revert "refactor: changed return to entity"

This reverts commit 985b2c4.

* refactor: add FluentAssertions, change create chat and user

* fix: some test tips

* fix: small conflict resolved

* refactor: change check entity

* chore: tests moved to separate solution folder

* style: namespaces fixed

* style: small codestyle fixes and etc.

* fix: public empty ctor changed to protected

* refactor: tests refactored a little bit

* refactor: typos in controllers fixed and other small tips implemented

* refactor: domain entities fixed

* fix: dto entities refactored a little bit

* chore: redundant ApiClients removed

* chore: ApiClients updated

* fix: merge conflict fixed

* chore: ApiClients updated again

Co-authored-by: KotDimos <[email protected]>

* Chore/packages publishing (#42)

* chore: npm configuration fixed

* fix: more npm info

* fix: more fixes

* Create npm-packages.yml

* Update npm-packages.yml

* fix: package versions made normal

* feat: openApiContracts.json file added

* Update dotnet.yml

* chore: package versions updated

* fix: missed file updated

* fix: package versions fixed

Co-authored-by: iskander-faggod <[email protected]>
Co-authored-by: KotDimos <[email protected]>
Co-authored-by: KotDimos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture Some architecture stuff...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure ApiClient generation
2 participants