-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from thisisnabi/refactor/project-structure
Refactor/project structure
- Loading branch information
Showing
187 changed files
with
319 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
src/Blogger.APIs/Endpoints/ApproveComment/ApproveCommentRequest.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/Blogger.APIs/Endpoints/ApproveReplay/ApproveReplayRequest.cs
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ts/CreateArticle/CreateArticleEndPoint.cs → ...es/CreateArticle/CreateArticleEndPoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ateArticle/CreateArticleMappingProfile.cs → ...ateArticle/CreateArticleMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nts/CreateArticle/CreateArticleRequest.cs → ...les/CreateArticle/CreateArticleRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace Blogger.APIs.Contracts.CreateArticle; | ||
namespace Blogger.APIs.Endpoints.Articles.CreateArticle; | ||
|
||
public record CreateArticleRequest(string Title, string Body, string Summary, string[] Tags); |
2 changes: 1 addition & 1 deletion
2
...eArticle/CreateArticleRequestValidator.cs → ...eArticle/CreateArticleRequestValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts/CreateArticle/CreateArticleResponse.cs → ...es/CreateArticle/CreateArticleResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Blogger.Domain.ArticleAggregate; | ||
namespace Blogger.APIs.Contracts.CreateArticle; | ||
namespace Blogger.APIs.Endpoints.Articles.CreateArticle; | ||
|
||
public record CreateArticleResponse(string ArticleId); |
5 changes: 2 additions & 3 deletions
5
...ndpoints/GetArchive/GetArchiveEndpoint.cs → ...Articles/GetArchive/GetArchiveEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ts/GetArchive/GetArchiveMappingProfile.cs → ...es/GetArchive/GetArchiveMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndpoints/GetArchive/GetArchiveResponse.cs → ...Articles/GetArchive/GetArchiveResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ndpoints/GetArticle/GetArticleEndpoint.cs → ...Articles/GetArticle/GetArticleEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ts/GetArticle/GetArticleMappingProfile.cs → ...es/GetArticle/GetArticleMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Blogger.APIs/Endpoints/Articles/GetArticle/GetArticleRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Blogger.APIs.Endpoints.Articles.GetArticle; | ||
|
||
public record GetArticleRequest([FromRoute(Name = "article-id")] string ArticleId); |
2 changes: 1 addition & 1 deletion
2
.../GetArticle/GetArticleRequestValidator.cs → .../GetArticle/GetArticleRequestValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndpoints/GetArticle/GetArticleResponse.cs → ...Articles/GetArticle/GetArticleResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...points/GetArticles/GetArticlesEndpoint.cs → ...ticles/GetArticles/GetArticlesEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../GetArticles/GetArticlesMappingProfile.cs → .../GetArticles/GetArticlesMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dpoints/GetArticles/GetArticlesRequest.cs → ...rticles/GetArticles/GetArticlesRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace Blogger.APIs.Contracts.GetArticles; | ||
namespace Blogger.APIs.Endpoints.Articles.GetArticles; | ||
|
||
public record GetArticlesRequest([FromQuery] int Page = 1, [FromQuery] int Size = 10); |
2 changes: 1 addition & 1 deletion
2
...points/GetArticles/GetArticlesResponse.cs → ...ticles/GetArticles/GetArticlesResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...larArticles/GetPopularArticlesEndpoint.cs → ...larArticles/GetPopularArticlesEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...icles/GetPopularArticlesMappingProfile.cs → ...icles/GetPopularArticlesMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...larArticles/GetPopularArticlesResponse.cs → ...larArticles/GetPopularArticlesResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace Blogger.APIs.Contracts.GetPopularArticles; | ||
namespace Blogger.APIs.Endpoints.Articles.GetPopularArticles; | ||
|
||
public record GetPopularArticlesResponse(string Title, string ArticleId); |
6 changes: 2 additions & 4 deletions
6
.../GetPopularTags/GetPopularTagsEndpoint.cs → .../GetPopularTags/GetPopularTagsEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...pularTags/GetPopularTagsMappingProfile.cs → ...pularTags/GetPopularTagsMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Blogger.APIs/Endpoints/Articles/GetPopularTags/GetPopularTagsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Blogger.APIs.Endpoints.Articles.GetPopularTags; | ||
|
||
public record GetPopularTagsResponse(string Name); |
4 changes: 2 additions & 2 deletions
4
...ggedArticles/GetTaggedArticlesEndpoint.cs → ...ggedArticles/GetTaggedArticlesEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ticles/GetTaggedArticlesMappingProfile.cs → ...ticles/GetTaggedArticlesMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...aggedArticles/GetTaggedArticlesRequest.cs → ...aggedArticles/GetTaggedArticlesRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace Blogger.APIs.Contracts.GetTaggedArticles; | ||
namespace Blogger.APIs.Endpoints.Articles.GetTaggedArticles; | ||
|
||
public record GetTaggedArticlesRequest([FromQuery] string Tag); |
2 changes: 1 addition & 1 deletion
2
...ggedArticles/GetTaggedArticlesResponse.cs → ...ggedArticles/GetTaggedArticlesResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...APIs/Endpoints/GetTags/GetTagsEndpoint.cs → ...oints/Articles/GetTags/GetTagsEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...ndpoints/GetTags/GetTagsMappingProfile.cs → ...Articles/GetTags/GetTagsMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...APIs/Endpoints/GetTags/GetTagsResponse.cs → ...oints/Articles/GetTags/GetTagsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace Blogger.APIs.Endpoints.GetTags; | ||
namespace Blogger.APIs.Endpoints.Articles.GetTags; | ||
|
||
public record GetTagsResponse(string Name, int Count); |
4 changes: 2 additions & 2 deletions
4
.../Endpoints/MakeDraft/MakeDraftEndpoint.cs → ...s/Articles/MakeDraft/MakeDraftEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ints/MakeDraft/MakeDraftMappingProfile.cs → ...cles/MakeDraft/MakeDraftMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/Endpoints/MakeDraft/MakeDraftRequest.cs → ...ts/Articles/MakeDraft/MakeDraftRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
namespace Blogger.APIs.Contracts.MakeDraft; | ||
namespace Blogger.APIs.Endpoints.Articles.MakeDraft; | ||
|
||
public record MakeDraftRequest(string Title, string Body, string Summary, string[] Tags); |
2 changes: 1 addition & 1 deletion
2
...ts/MakeDraft/MakeDraftRequestValidator.cs → ...es/MakeDraft/MakeDraftRequestValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Blogger.APIs/Endpoints/Articles/MakeDraft/MakeDraftResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Blogger.APIs.Endpoints.Articles.MakeDraft; | ||
|
||
public record MakeDraftResponse(string DraftId); |
4 changes: 2 additions & 2 deletions
4
...ints/PublishDraft/PublishDraftEndpoint.cs → ...cles/PublishDraft/PublishDraftEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ublishDraft/PublishDraftMappingProfile.cs → ...ublishDraft/PublishDraftMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Blogger.APIs/Endpoints/Articles/PublishDraft/PublishDraftRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Blogger.APIs.Endpoints.Articles.PublishDraft; | ||
|
||
public record PublishDraftRequest([FromRoute(Name = "draft-id")] string DraftId); |
2 changes: 1 addition & 1 deletion
2
...lishDraft/PublishDraftRequestValidator.cs → ...lishDraft/PublishDraftRequestValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...points/UpdateDraft/UpdateDraftEndpoint.cs → ...ticles/UpdateDraft/UpdateDraftEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../UpdateDraft/UpdateDraftMappingProfile.cs → .../UpdateDraft/UpdateDraftMappingProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Blogger.APIs/Endpoints/Articles/UpdateDraft/UpdateDraftRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Blogger.APIs.Endpoints.Articles.UpdateDraft; | ||
|
||
public record UpdateDraftRequest(string DraftId, string Title, string Body, string Summary, string[] Tags); |
2 changes: 1 addition & 1 deletion
2
...pdateDraft/UpdateDraftRequestValidator.cs → ...pdateDraft/UpdateDraftRequestValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../ApproveComment/ApproveCommentEndpoint.cs → .../ApproveComment/ApproveCommentEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.