Skip to content

Commit

Permalink
#20 updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Sep 26, 2023
1 parent 3bef149 commit b2f44af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public async Task<IActionResult> AddComment([FromRoute] string slug, [FromBody]
return Ok(new { comment = viewModel });
}

/// <summary>
/// Get all comments for a given article
/// </summary>
/// <param name="slug">Article slug (required)</param>
/// <returns>Comments array</returns>
[HttpGet]
[AllowAnonymous]
[Route("/api/articles/{slug}/comments")]
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ You'll need to understand at least a little bit:

* *Conduit.Web* - This is the most important project. It's where the actual implementation is. The project is "sliced" by feature as much as possible. That is, grouping together objects with common functionality.

* *Models* folder - this is where data access objects are kept. These objects are used only for database interaction.
* *DataAccess* folder - this is where data access objects are kept. These objects are used only for database interaction. There are also some VSCode Notebooks for the queries that are used in the project (uses the [Couchbase VSCode Extension](https://marketplace.visualstudio.com/items?itemName=Couchbase.vscode-couchbase)).
* *Sliced* folders - these contain ASP.NET Core Controller(s), Mediatr request, response, and handler classes, viewmodels, and services for the functionality of the slice.
* Users - Authorization/authentication, JWT, registration, login, anything for Users
* Follows - Follow/unfollow
* Articles - Articles, favorites, and tags for articles
* ...more on the way...
* Articles - Articles, favorites, comments, and tags for articles
* *Extensions* folder - extension methods for ASP.NET functionality

* *Conduit.Tests* - Automated tests for Conduit.Web.
Expand Down

0 comments on commit b2f44af

Please sign in to comment.