| API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | +
+ @if (api.Documentation !=null)
+ {
+ @api.Documentation + } + else + { +No documentation available. + } + |
+
@description.Documentation
+ } + else + { +No documentation available.
+ } + + if (hasParameters || hasRequestSamples) + { +| Name | Description | Additional information |
|---|---|---|
| @parameter.Name | +
+ @parameterDocumentation + |
+
+ @{
+ switch (parameter.Source)
+ {
+ case ApiParameterSource.FromBody:
+ Define this parameter in the request body. + + break; + case ApiParameterSource.FromUri: +Define this parameter in the request URI. + + break; + case ApiParameterSource.Unknown: + default: +None. + break; + } + } + |
+
None.
+} \ No newline at end of file diff --git a/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Help/DalSoft.WebApi.HelpPage.Views/DisplayTemplates/Samples.cshtml b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Help/DalSoft.WebApi.HelpPage.Views/DisplayTemplates/Samples.cshtml new file mode 100644 index 0000000..c76f82d --- /dev/null +++ b/DataCenter_Windows/WindowsDataCenter/WindowsDataCenter/Help/DalSoft.WebApi.HelpPage.Views/DisplayTemplates/Samples.cshtml @@ -0,0 +1,37 @@ +@using System.Net.Http.Headers +@using DalSoft.WebApi.HelpPage.SampleGeneration +@model IDictionarySample not available.
+ } + else if (sample is TextSample) + { +@(((TextSample)sample).Text)+ } + else if (sample is ImageSample) + { +
+ Help Page Home +
++ Provide a general description of your APIs here. +
+