Skip to content

Commit

Permalink
#23 endpoint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Sep 12, 2023
1 parent d55ca7f commit d9a821c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ public async Task<IActionResult> FavoriteArticle(string slug)
/// Remove a favorite of the logged-in user's
/// </summary>
/// <remarks>
///
/// <a href="https://realworld-docs.netlify.app/docs/specs/backend-specs/endpoints/#unfavorite-article">Conduit spec for Unfavorite article</a>
/// </remarks>
/// <param name="slug">Article slug</param>
/// <returns>Article (with profile of author embedded)</returns>
/// <response code="200">Successful favorite, returns the favorited Article</response>
/// <response code="200">Successful unfavorite, returns the unfavorited Article</response>
/// <response code="401">Unauthorized, likely because credentials are incorrect</response>
/// <response code="422">Article was unable to be favorited</response>
/// <response code="422">Article was unable to be unfavorited</response>
[HttpDelete]
[Route("/api/article/{slug}/favorite")]
[Authorize]
Expand Down

0 comments on commit d9a821c

Please sign in to comment.