├── WebAPIOBO
├── Views
│ ├── _ViewStart.cshtml
│ ├── Shared
│ │ ├── Error.cshtml
│ │ └── _Layout.cshtml
│ ├── Home
│ │ └── Index.cshtml
│ └── Web.config
├── Global.asax
├── favicon.ico
├── Areas
│ └── HelpPage
│ │ ├── Views
│ │ ├── Help
│ │ │ ├── DisplayTemplates
│ │ │ │ ├── ImageSample.cshtml
│ │ │ │ ├── TextSample.cshtml
│ │ │ │ ├── SimpleTypeModelDescription.cshtml
│ │ │ │ ├── ComplexTypeModelDescription.cshtml
│ │ │ │ ├── CollectionModelDescription.cshtml
│ │ │ │ ├── InvalidSample.cshtml
│ │ │ │ ├── DictionaryModelDescription.cshtml
│ │ │ │ ├── KeyValuePairModelDescription.cshtml
│ │ │ │ ├── EnumTypeModelDescription.cshtml
│ │ │ │ ├── Samples.cshtml
│ │ │ │ ├── ModelDescriptionLink.cshtml
│ │ │ │ ├── ApiGroup.cshtml
│ │ │ │ ├── Parameters.cshtml
│ │ │ │ └── HelpPageApiModel.cshtml
│ │ │ ├── ResourceModel.cshtml
│ │ │ ├── Api.cshtml
│ │ │ └── Index.cshtml
│ │ ├── _ViewStart.cshtml
│ │ ├── Shared
│ │ │ └── _Layout.cshtml
│ │ └── Web.config
│ │ ├── ModelDescriptions
│ │ ├── SimpleTypeModelDescription.cs
│ │ ├── DictionaryModelDescription.cs
│ │ ├── CollectionModelDescription.cs
│ │ ├── ParameterAnnotation.cs
│ │ ├── EnumValueDescription.cs
│ │ ├── KeyValuePairModelDescription.cs
│ │ ├── IModelDocumentationProvider.cs
│ │ ├── ModelDescription.cs
│ │ ├── ComplexTypeModelDescription.cs
│ │ ├── EnumTypeModelDescription.cs
│ │ ├── ParameterDescription.cs
│ │ ├── ModelNameAttribute.cs
│ │ └── ModelNameHelper.cs
│ │ ├── SampleGeneration
│ │ ├── SampleDirection.cs
│ │ ├── TextSample.cs
│ │ ├── InvalidSample.cs
│ │ └── ImageSample.cs
│ │ ├── HelpPageAreaRegistration.cs
│ │ ├── ApiDescriptionExtensions.cs
│ │ ├── Controllers
│ │ └── HelpController.cs
│ │ ├── HelpPage.css
│ │ └── Models
│ │ └── HelpPageApiModel.cs
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── Startup.cs
├── App_Start
│ ├── FilterConfig.cs
│ ├── RouteConfig.cs
│ ├── WebApiConfig.cs
│ ├── Startup.Auth.cs
│ └── BundleConfig.cs
├── Content
│ └── Site.css
├── Controllers
│ ├── WebAPIOBOController.cs
│ ├── HomeController.cs
│ └── ValuesController.cs
├── Global.asax.cs
├── Web.Debug.config
├── Web.Release.config
├── Properties
│ └── AssemblyInfo.cs
├── packages.config
├── Web.config.backup.1
├── Web.config
└── Scripts
│ └── respond.min.js
├── TodoListService
├── Views
│ ├── _ViewStart.cshtml
│ ├── Shared
│ │ ├── Error.cshtml
│ │ └── _Layout.cshtml
│ ├── Home
│ │ └── Index.cshtml
│ └── Web.config
├── App_Data
│ └── .gitignore
├── Global.asax
├── Icon.png
├── favicon.ico
├── Areas
│ └── HelpPage
│ │ ├── Views
│ │ ├── Help
│ │ │ ├── DisplayTemplates
│ │ │ │ ├── ImageSample.cshtml
│ │ │ │ ├── TextSample.cshtml
│ │ │ │ ├── SimpleTypeModelDescription.cshtml
│ │ │ │ ├── ComplexTypeModelDescription.cshtml
│ │ │ │ ├── CollectionModelDescription.cshtml
│ │ │ │ ├── InvalidSample.cshtml
│ │ │ │ ├── DictionaryModelDescription.cshtml
│ │ │ │ ├── KeyValuePairModelDescription.cshtml
│ │ │ │ ├── EnumTypeModelDescription.cshtml
│ │ │ │ ├── Samples.cshtml
│ │ │ │ ├── ModelDescriptionLink.cshtml
│ │ │ │ ├── ApiGroup.cshtml
│ │ │ │ ├── Parameters.cshtml
│ │ │ │ └── HelpPageApiModel.cshtml
│ │ │ ├── ResourceModel.cshtml
│ │ │ ├── Api.cshtml
│ │ │ └── Index.cshtml
│ │ ├── _ViewStart.cshtml
│ │ ├── Shared
│ │ │ └── _Layout.cshtml
│ │ └── Web.config
│ │ ├── ModelDescriptions
│ │ ├── SimpleTypeModelDescription.cs
│ │ ├── DictionaryModelDescription.cs
│ │ ├── CollectionModelDescription.cs
│ │ ├── ParameterAnnotation.cs
│ │ ├── EnumValueDescription.cs
│ │ ├── KeyValuePairModelDescription.cs
│ │ ├── IModelDocumentationProvider.cs
│ │ ├── ModelDescription.cs
│ │ ├── ComplexTypeModelDescription.cs
│ │ ├── EnumTypeModelDescription.cs
│ │ ├── ModelNameAttribute.cs
│ │ ├── ParameterDescription.cs
│ │ └── ModelNameHelper.cs
│ │ ├── SampleGeneration
│ │ ├── SampleDirection.cs
│ │ ├── TextSample.cs
│ │ ├── InvalidSample.cs
│ │ └── ImageSample.cs
│ │ ├── HelpPageAreaRegistration.cs
│ │ ├── ApiDescriptionExtensions.cs
│ │ ├── Controllers
│ │ └── HelpController.cs
│ │ ├── HelpPage.css
│ │ └── Models
│ │ └── HelpPageApiModel.cs
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── Startup.cs
├── App_Start
│ ├── FilterConfig.cs
│ ├── RouteConfig.cs
│ ├── WebApiConfig.cs
│ ├── Startup.Auth.cs
│ └── BundleConfig.cs
├── Scripts
│ ├── _references.js
│ ├── npm.js
│ ├── respond.min.js
│ └── respond.matchmedia.addListener.min.js
├── Controllers
│ ├── HomeController.cs
│ └── ValuesController.cs
├── Global.asax.cs
├── Content
│ └── Site.css
├── DAL
│ ├── TodoListServiceContext.cs
│ └── DbTokenCache.cs
├── Web.Debug.config
├── Web.Release.config
├── Properties
│ └── AssemblyInfo.cs
├── Models
│ ├── UserProfile.cs
│ └── TodoItem.cs
├── Web.config.backup.1
└── packages.config
├── media
├── webapi1.png
├── webapi2.png
├── webapi3.png
├── webapi4.png
├── webapi5.png
├── webapi6.png
├── webapi7.png
├── webapi8.png
├── webapi9.png
├── webapi10.png
├── webapi11.png
├── webapi12.png
├── webapi13.png
├── webapi14.png
├── webapi15.png
├── webapi16.png
├── webapi17.png
├── webapi18.png
├── webapi19.png
├── webapi20.png
├── webapi21.png
├── webapi22.png
├── webapi23.png
├── webapi24.png
├── webapi25.png
├── webapi26.png
├── webapi27.png
├── webapi28.png
├── webapi29.png
├── webapi30.png
├── webapi31.png
├── webapi32.png
└── webapi33.png
├── ReadmeFiles
├── Topology.png
└── TodoListClient.png
├── TodoListClient
├── Properties
│ ├── Settings.settings
│ ├── Settings.Designer.cs
│ ├── AssemblyInfo.cs
│ └── Resources.Designer.cs
├── App.xaml
├── App.xaml.cs
├── packages.config
├── TodoItem.cs
├── App.config
├── TokenCacheHelper.cs
├── FileCache.cs
└── MainWindow.xaml
├── TodoListSPA
├── packages.config
├── appconfig.js
├── index.html
├── Web.Debug.config
├── Web.config
├── Web.Release.config
└── Properties
│ └── AssemblyInfo.cs
├── CODE_OF_CONDUCT.md
├── LICENSE
├── SECURITY.md
├── AppCreationScripts
├── Cleanup.ps1
└── apps.json
└── adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof.sln
/WebAPIOBO/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/TodoListService/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/TodoListService/App_Data/.gitignore:
--------------------------------------------------------------------------------
1 | # Ignore everything in this directory
2 | *
3 | # Except this file
4 | !.gitignore
--------------------------------------------------------------------------------
/WebAPIOBO/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WebAPIOBO.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/media/webapi1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi1.png
--------------------------------------------------------------------------------
/media/webapi2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi2.png
--------------------------------------------------------------------------------
/media/webapi3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi3.png
--------------------------------------------------------------------------------
/media/webapi4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi4.png
--------------------------------------------------------------------------------
/media/webapi5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi5.png
--------------------------------------------------------------------------------
/media/webapi6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi6.png
--------------------------------------------------------------------------------
/media/webapi7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi7.png
--------------------------------------------------------------------------------
/media/webapi8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi8.png
--------------------------------------------------------------------------------
/media/webapi9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi9.png
--------------------------------------------------------------------------------
/TodoListService/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="TodoListService.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/media/webapi10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi10.png
--------------------------------------------------------------------------------
/media/webapi11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi11.png
--------------------------------------------------------------------------------
/media/webapi12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi12.png
--------------------------------------------------------------------------------
/media/webapi13.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi13.png
--------------------------------------------------------------------------------
/media/webapi14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi14.png
--------------------------------------------------------------------------------
/media/webapi15.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi15.png
--------------------------------------------------------------------------------
/media/webapi16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi16.png
--------------------------------------------------------------------------------
/media/webapi17.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi17.png
--------------------------------------------------------------------------------
/media/webapi18.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi18.png
--------------------------------------------------------------------------------
/media/webapi19.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi19.png
--------------------------------------------------------------------------------
/media/webapi20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi20.png
--------------------------------------------------------------------------------
/media/webapi21.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi21.png
--------------------------------------------------------------------------------
/media/webapi22.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi22.png
--------------------------------------------------------------------------------
/media/webapi23.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi23.png
--------------------------------------------------------------------------------
/media/webapi24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi24.png
--------------------------------------------------------------------------------
/media/webapi25.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi25.png
--------------------------------------------------------------------------------
/media/webapi26.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi26.png
--------------------------------------------------------------------------------
/media/webapi27.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi27.png
--------------------------------------------------------------------------------
/media/webapi28.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi28.png
--------------------------------------------------------------------------------
/media/webapi29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi29.png
--------------------------------------------------------------------------------
/media/webapi30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi30.png
--------------------------------------------------------------------------------
/media/webapi31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi31.png
--------------------------------------------------------------------------------
/media/webapi32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi32.png
--------------------------------------------------------------------------------
/media/webapi33.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/media/webapi33.png
--------------------------------------------------------------------------------
/WebAPIOBO/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/WebAPIOBO/favicon.ico
--------------------------------------------------------------------------------
/ReadmeFiles/Topology.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/ReadmeFiles/Topology.png
--------------------------------------------------------------------------------
/TodoListService/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/TodoListService/Icon.png
--------------------------------------------------------------------------------
/TodoListService/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/TodoListService/favicon.ico
--------------------------------------------------------------------------------
/ReadmeFiles/TodoListClient.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/ReadmeFiles/TodoListClient.png
--------------------------------------------------------------------------------
/WebAPIOBO/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml:
--------------------------------------------------------------------------------
1 | @using WebAPIOBO.Areas.HelpPage
2 | @model ImageSample
3 |
4 |
--------------------------------------------------------------------------------
/TodoListService/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml:
--------------------------------------------------------------------------------
1 | @using TodoListService.Areas.HelpPage
2 | @model ImageSample
3 |
4 |
--------------------------------------------------------------------------------
/WebAPIOBO/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml:
--------------------------------------------------------------------------------
1 | @using WebAPIOBO.Areas.HelpPage
2 | @model TextSample
3 |
4 |
5 | @Model.Text 6 |-------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml: -------------------------------------------------------------------------------- 1 | @using TodoListService.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text 6 |-------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIOBO.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /WebAPIOBO/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/WebAPIOBO/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebAPIOBO/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/WebAPIOBO/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebAPIOBO/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/WebAPIOBO/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /TodoListService/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/TodoListService/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /TodoListService/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/TodoListService/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using TodoListService.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /TodoListService/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/TodoListService/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /TodoListService/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/adfs-sample-msal-dotnet-webapi-to-webapi-onbehalfof/master/TodoListService/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIOBO.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages 3 | Layout = "~/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using WebAPIOBO.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace TodoListService.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace WebAPIOBO.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using TodoListService.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages. 3 | Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace TodoListService.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /TodoListClient/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 |
Sample not available.
13 | } -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |Sample not available.
13 | } -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace WebAPIOBO.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace TodoListService.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace TodoListService.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /TodoListService/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = null; 3 | } 4 | 5 | 6 | 7 | 8 | 9 |10 | @Html.ActionLink("Help Page Home", "Index") 11 |
12 |@Model.Documentation
16 |10 | @Html.ActionLink("Help Page Home", "Index") 11 |
12 |@Model.Documentation
16 |15 | @Html.ActionLink("Help Page Home", "Index") 16 |
17 |15 | @Html.ActionLink("Help Page Home", "Index") 16 |
17 |Possible enumeration values:
5 | 6 || Name | Value | Description |
|---|---|---|
| @value.Name | 15 |
16 | @value.Value 17 | |
18 |
19 | @value.Documentation 20 | |
21 |
Possible enumeration values:
5 | 6 || Name | Value | Description |
|---|---|---|
| @value.Name | 15 |
16 | @value.Value 17 | |
18 |
19 | @value.Documentation 20 | |
21 |
Sample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |Sample not available.
22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |28 | Provide a general description of your APIs here. 29 |
30 |28 | Provide a general description of your APIs here. 29 |
30 |@controllerDocumentation
18 | } 19 || API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | 28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation 32 | } 33 | else 34 | { 35 |No documentation available. 36 | } 37 | |
38 |
@controllerDocumentation
18 | } 19 || API | Description |
|---|---|
| @api.HttpMethod.Method @api.RelativePath | 28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation 32 | } 33 | else 34 | { 35 |No documentation available. 36 | } 37 | |
38 |
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.
4 | 5 |ASP.NET Web API is a framework that makes it easy to build HTTP services that reach 10 | a broad range of clients, including browsers and mobile devices. ASP.NET Web API 11 | is an ideal platform for building RESTful applications on the .NET Framework.
12 | 13 |NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
17 | 18 |You can easily find a web hosting company that offers the right mix of features and price for your applications.
22 | 23 |ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.
4 | 5 |ASP.NET Web API is a framework that makes it easy to build HTTP services that reach 10 | a broad range of clients, including browsers and mobile devices. ASP.NET Web API 11 | is an ideal platform for building RESTful applications on the .NET Framework.
12 | 13 |NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
17 | 18 |You can easily find a web hosting company that offers the right mix of features and price for your applications.
22 | 23 || Name | Description | Type | Additional information |
|---|---|---|---|
| @parameter.Name | 20 |
21 | @parameter.Documentation 22 | |
23 | 24 | @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription }) 25 | | 26 |
27 | @if (parameter.Annotations.Count > 0)
28 | {
29 | foreach (var annotation in parameter.Annotations)
30 | {
31 | @annotation.Documentation 32 | } 33 | } 34 | else 35 | { 36 |None. 37 | } 38 | |
39 |
None.
47 | } 48 | 49 | -------------------------------------------------------------------------------- /TodoListService/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Collections.Generic 2 | @using System.Collections.ObjectModel 3 | @using System.Web.Http.Description 4 | @using System.Threading 5 | @using TodoListService.Areas.HelpPage.ModelDescriptions 6 | @model IList| Name | Description | Type | Additional information |
|---|---|---|---|
| @parameter.Name | 20 |
21 | @parameter.Documentation 22 | |
23 | 24 | @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription }) 25 | | 26 |
27 | @if (parameter.Annotations.Count > 0)
28 | {
29 | foreach (var annotation in parameter.Annotations)
30 | {
31 | @annotation.Documentation 32 | } 33 | } 34 | else 35 | { 36 |None. 37 | } 38 | |
39 |
None.
47 | } 48 | 49 | -------------------------------------------------------------------------------- /WebAPIOBO/Areas/HelpPage/Views/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 |@description.Documentation
13 | 14 |@Model.RequestDocumentation
22 | 23 | @if (Model.RequestModelDescription != null) 24 | { 25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription }) 26 | if (Model.RequestBodyParameters != null) 27 | { 28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters") 29 | } 30 | } 31 | else 32 | { 33 |None.
34 | } 35 | 36 | @if (Model.SampleRequests.Count > 0) 37 | { 38 |@description.ResponseDescription.Documentation
47 | 48 | @if (Model.ResourceDescription != null) 49 | { 50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription }) 51 | if (Model.ResourceProperties != null) 52 | { 53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters") 54 | } 55 | } 56 | else 57 | { 58 |None.
59 | } 60 | 61 | @if (Model.SampleResponses.Count > 0) 62 | { 63 |@description.Documentation
13 | 14 |@Model.RequestDocumentation
22 | 23 | @if (Model.RequestModelDescription != null) 24 | { 25 | @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription }) 26 | if (Model.RequestBodyParameters != null) 27 | { 28 | @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters") 29 | } 30 | } 31 | else 32 | { 33 |None.
34 | } 35 | 36 | @if (Model.SampleRequests.Count > 0) 37 | { 38 |@description.ResponseDescription.Documentation
47 | 48 | @if (Model.ResourceDescription != null) 49 | { 50 | @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription }) 51 | if (Model.ResourceProperties != null) 52 | { 53 | @Html.DisplayFor(m => m.ResourceProperties, "Parameters") 54 | } 55 | } 56 | else 57 | { 58 |None.
59 | } 60 | 61 | @if (Model.SampleResponses.Count > 0) 62 | { 63 |