66namespace Simplify . Web . Swagger
77{
88 /// <summary>
9- /// Represent controller action
9+ /// Provides the controller action.
1010 /// </summary>
1111 public class ControllerAction
1212 {
1313 private ControllerActionNames ? _names ;
1414 private IControllerRoute ? _controllerRoute ;
1515
1616 /// <summary>
17- /// Request body
17+ /// Gets or sets the request body.
1818 /// </summary>
19+ /// <value>
20+ /// The request body.
21+ /// </value>
1922 public OpenApiRequestBody RequestBody { get ; set ; } = new ( ) ;
2023
2124 /// <summary>
22- /// Controller responses
25+ /// Gets or sets the responses.
2326 /// </summary>
27+ /// <value>
28+ /// The responses.
29+ /// </value>
2430 public IDictionary < int , OpenApiResponse > Responses { get ; set ; } = new Dictionary < int , OpenApiResponse > ( ) ;
2531
2632 /// <summary>
27- /// Operation type
33+ /// Gets or sets the type.
2834 /// </summary>
35+ /// <value>
36+ /// The type.
37+ /// </value>
2938 public OperationType Type { get ; set ; }
3039
3140 /// <summary>
32- /// Controller path
41+ /// Gets the path.
3342 /// </summary>
43+ /// <value>
44+ /// The path.
45+ /// </value>
3446#if NETSTANDARD2_0
3547 public string Path => ControllerRoute . Path . StartsWith ( "/" ) ? ControllerRoute . Path : "/" + ControllerRoute . Path ;
3648#else
3749 public string Path => ControllerRoute . Path . StartsWith ( '/' ) ? ControllerRoute . Path : "/" + ControllerRoute . Path ;
50+
3851#endif
3952
4053 /// <summary>
@@ -51,8 +64,12 @@ public IControllerRoute ControllerRoute
5164 }
5265
5366 /// <summary>
54- /// Controller names
67+ /// Gets or sets the names.
5568 /// </summary>
69+ /// <value>
70+ /// The names.
71+ /// </value>
72+ /// <exception cref="InvalidOperationException">Names is null</exception>
5673 public ControllerActionNames Names
5774 {
5875 get => _names ?? throw new InvalidOperationException ( "Names is null" ) ;
@@ -62,6 +79,9 @@ public ControllerActionNames Names
6279 /// <summary>
6380 /// Gets or sets the value indicating whether controller requires user authorization.
6481 /// </summary>
82+ /// <value>
83+ /// <c>true</c> if this instance is authorization required; otherwise, <c>false</c>.
84+ /// </value>
6585 public bool IsAuthorizationRequired { get ; set ; }
6686 }
6787}
0 commit comments