Skip to content

Commit 665e215

Browse files
author
Sergey Tregub
committed
Add swagger comments
1 parent b2ef04c commit 665e215

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ProjectTemplates/ReferenceProject/Controllers/ProductsController.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ public IActionResult ThrowAnException()
115115
throw new Exception("Example exception");
116116
}
117117

118+
/// <summary>
119+
/// Demonstrate how to use application settings
120+
/// </summary>
121+
/// <returns>Application settings</returns>
122+
/// <remarks>Don't do this in production! You can unintentionally unclose sensitive information</remarks>
118123
[HttpGet("Settings")]
124+
[ProducesResponseType(StatusCodes.Status200OK)]
119125
public Settings.Products GetSettings()
120126
{
121127
return Settings.Value;

0 commit comments

Comments
 (0)