Update 20240719
This commit is contained in:
@@ -174,6 +174,7 @@
|
||||
<Compile Include="Areas\HelpPage\XmlDocumentationProvider.cs" />
|
||||
<Compile Include="Controllers\DocumentController.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\OnBaseController.cs" />
|
||||
<Compile Include="Controllers\ValuesController.cs" />
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<Controller_SelectedScaffolderID>ApiControllerEmptyScaffolder</Controller_SelectedScaffolderID>
|
||||
<Controller_SelectedScaffolderCategoryPath>root/Common/Web API</Controller_SelectedScaffolderCategoryPath>
|
||||
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
|
||||
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
|
||||
<WebStackScaffolding_ControllerDialogWidth>600</WebStackScaffolding_ControllerDialogWidth>
|
||||
<WebStackScaffolding_IsLayoutPageSelected>True</WebStackScaffolding_IsLayoutPageSelected>
|
||||
<WebStackScaffolding_IsPartialViewSelected>False</WebStackScaffolding_IsPartialViewSelected>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Web;
|
||||
using System.Web.Optimization;
|
||||
|
||||
namespace EDOKAAPI_NetFramework
|
||||
namespace API_NetFramework
|
||||
{
|
||||
public class BundleConfig
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace EDOKAAPI_NetFramework
|
||||
namespace API_NetFramework
|
||||
{
|
||||
public class FilterConfig
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace EDOKAAPI_NetFramework
|
||||
namespace API_NetFramework
|
||||
{
|
||||
public class RouteConfig
|
||||
{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using System.Web.Http;
|
||||
using WebActivatorEx;
|
||||
using EDOKAAPI_NetFramework;
|
||||
using API_NetFramework;
|
||||
using Swashbuckle.Application;
|
||||
|
||||
[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
|
||||
|
||||
namespace EDOKAAPI_NetFramework
|
||||
namespace API_NetFramework
|
||||
{
|
||||
public class SwaggerConfig
|
||||
{
|
||||
@@ -32,7 +32,7 @@ namespace EDOKAAPI_NetFramework
|
||||
// hold additional metadata for an API. Version and title are required but you can also provide
|
||||
// additional fields by chaining methods off SingleApiVersion.
|
||||
//
|
||||
c.SingleApiVersion("v1", "EDOKAAPI_NetFramework");
|
||||
c.SingleApiVersion("v1", "API_NetFramework");
|
||||
|
||||
// If you want the output Swagger docs to be indented properly, enable the "PrettyPrint" option.
|
||||
//
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace EDOKAAPI_NetFramework
|
||||
namespace API_NetFramework
|
||||
{
|
||||
public static class WebApiConfig
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Http.Description;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
public static class ApiDescriptionExtensions
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ using System.Web.Http;
|
||||
using System.Web.Http.OData;
|
||||
#endif
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// Use this class to customize the Help Page.
|
||||
@@ -26,7 +26,7 @@ namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
public static class HelpPageConfig
|
||||
{
|
||||
[SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters",
|
||||
MessageId = "EDOKAAPI_NetFramework.Areas.HelpPage.TextSample.#ctor(System.String)",
|
||||
MessageId = "EDOKA API_NetFramework.Areas.HelpPage.TextSample.#ctor(System.String)",
|
||||
Justification = "End users may choose to merge this string with existing localized resources.")]
|
||||
[SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly",
|
||||
MessageId = "bsonspec",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System.Web.Http;
|
||||
using System.Web.Mvc;
|
||||
using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
using EDOKAAPI_NetFramework.Areas.HelpPage.Models;
|
||||
using API_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
using API_NetFramework.Areas.HelpPage.Models;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.Controllers
|
||||
namespace API_NetFramework.Areas.HelpPage.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// The controller that will handle requests for the help page.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Web.Http;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
public class HelpPageAreaRegistration : AreaRegistration
|
||||
{
|
||||
|
||||
@@ -11,10 +11,10 @@ using System.Net.Http.Headers;
|
||||
using System.Web.Http;
|
||||
using System.Web.Http.Controllers;
|
||||
using System.Web.Http.Description;
|
||||
using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
using EDOKAAPI_NetFramework.Areas.HelpPage.Models;
|
||||
using API_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
using API_NetFramework.Areas.HelpPage.Models;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
public static class HelpPageConfigurationExtensions
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class CollectionModelDescription : ModelDescription
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class ComplexTypeModelDescription : ModelDescription
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class DictionaryModelDescription : KeyValuePairModelDescription
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class EnumTypeModelDescription : ModelDescription
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class EnumValueDescription
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public interface IModelDocumentationProvider
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class KeyValuePairModelDescription : ModelDescription
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes a type model.
|
||||
|
||||
@@ -11,7 +11,7 @@ using System.Web.Http.Description;
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Generates model descriptions for given types.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Use this attribute to change the name of the <see cref="ModelDescription"/> generated for a type.
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
internal static class ModelNameHelper
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class ParameterAnnotation
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class ParameterDescription
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
namespace API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
{
|
||||
public class SimpleTypeModelDescription : ModelDescription
|
||||
{
|
||||
|
||||
@@ -2,9 +2,9 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Web.Http.Description;
|
||||
using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
using API_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage.Models
|
||||
namespace API_NetFramework.Areas.HelpPage.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// The model that represents an API displayed on the help page.
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Web.Http.Description;
|
||||
using System.Xml.Linq;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// This class will generate the samples for the help page.
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// This is used to identify the place where the sample should be applied.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class.
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// This class will create an object of a given type and populate it with sample data.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates whether the sample is used for request or response
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@using System.Web.Http
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.Models
|
||||
@using API_NetFramework.Areas.HelpPage.Models
|
||||
@model HelpPageApiModel
|
||||
|
||||
@{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
@using System.Web.Http
|
||||
@using System.Web.Http.Controllers
|
||||
@using System.Web.Http.Description
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.Models
|
||||
@using API_NetFramework.Areas.HelpPage
|
||||
@using API_NetFramework.Areas.HelpPage.Models
|
||||
@model IGrouping<HttpControllerDescriptor, ApiDescription>
|
||||
|
||||
@{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model CollectionModelDescription
|
||||
@if (Model.ElementDescription is ComplexTypeModelDescription)
|
||||
{
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model ComplexTypeModelDescription
|
||||
@Html.DisplayFor(m => m.Properties, "Parameters")
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model DictionaryModelDescription
|
||||
Dictionary of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key]
|
||||
and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value]
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model EnumTypeModelDescription
|
||||
|
||||
<p>Possible enumeration values:</p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@using System.Web.Http
|
||||
@using System.Web.Http.Description
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.Models
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.Models
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model HelpPageApiModel
|
||||
|
||||
@{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
@using API_NetFramework.Areas.HelpPage
|
||||
@model ImageSample
|
||||
|
||||
<img src="@Model.Src" />
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
@using API_NetFramework.Areas.HelpPage
|
||||
@model InvalidSample
|
||||
|
||||
@if (HttpContext.Current.IsDebuggingEnabled)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model KeyValuePairModelDescription
|
||||
Pair of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key]
|
||||
and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value]
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model Type
|
||||
@{
|
||||
ModelDescription modelDescription = ViewBag.modelDescription;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@using System.Collections.ObjectModel
|
||||
@using System.Web.Http.Description
|
||||
@using System.Threading
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model IList<ParameterDescription>
|
||||
|
||||
@if (Model.Count > 0)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model SimpleTypeModelDescription
|
||||
@Model.Documentation
|
||||
@@ -1,4 +1,4 @@
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
@using API_NetFramework.Areas.HelpPage
|
||||
@model TextSample
|
||||
|
||||
<pre class="wrapped">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@using System.Web.Http.Controllers
|
||||
@using System.Web.Http.Description
|
||||
@using System.Collections.ObjectModel
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.Models
|
||||
@using API_NetFramework.Areas.HelpPage.Models
|
||||
@model Collection<ApiDescription>
|
||||
|
||||
@{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@using System.Web.Http
|
||||
@using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@using API_NetFramework.Areas.HelpPage.ModelDescriptions
|
||||
@model ModelDescription
|
||||
|
||||
<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
|
||||
|
||||
@@ -5,9 +5,9 @@ using System.Reflection;
|
||||
using System.Web.Http.Controllers;
|
||||
using System.Web.Http.Description;
|
||||
using System.Xml.XPath;
|
||||
using EDOKAAPI_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
using API_NetFramework.Areas.HelpPage.ModelDescriptions;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Areas.HelpPage
|
||||
namespace API_NetFramework.Areas.HelpPage
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom <see cref="IDocumentationProvider"/> that reads the API documentation from an XML documentation file.
|
||||
|
||||
@@ -11,7 +11,7 @@ using Database;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Controllers
|
||||
namespace API_NetFramework.Controllers
|
||||
{
|
||||
public class TestParam
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Controllers
|
||||
namespace API_NetFramework.Controllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
|
||||
34
API_NetFramework/Controllers/OnBaseController.cs
Normal file
34
API_NetFramework/Controllers/OnBaseController.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
using DOCGEN;
|
||||
using Model;
|
||||
using Database;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace API_NetFramework.Controllers
|
||||
{
|
||||
public class OnBaseController : ApiController
|
||||
{
|
||||
// GET: OnBase
|
||||
string connectionstring = ConfigurationManager.ConnectionStrings["EDOKAConnectionstring"].ConnectionString;
|
||||
[HttpGet]
|
||||
[Route("API/ArchiveDocFromDatabase")]
|
||||
public IHttpActionResult ArchivDoc_From_Database(string dokid)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("API/ArchiveDocBase64")]
|
||||
public IHttpActionResult ArchivDocBase64(string dokid)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace EDOKAAPI_NetFramework.Controllers
|
||||
namespace API_NetFramework.Controllers
|
||||
{
|
||||
public class ValuesController : ApiController
|
||||
{
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%@ Application Codebehind="Global.asax.cs" Inherits="EDOKAAPI_NetFramework.WebApiApplication" Language="C#" %>
|
||||
<%@ Application Codebehind="Global.asax.cs" Inherits="API_NetFramework.WebApiApplication" Language="C#" %>
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Web.Mvc;
|
||||
using System.Web.Optimization;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace EDOKAAPI_NetFramework
|
||||
namespace API_NetFramework
|
||||
{
|
||||
public class WebApiApplication : System.Web.HttpApplication
|
||||
{
|
||||
|
||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
||||
// Allgemeine Informationen zu einer Assembly werden durch Folgendes gesteuert:
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die
|
||||
// Assemblyinformationen zu ändern.
|
||||
[assembly: AssemblyTitle("EDOKAAPI_NetFramework")]
|
||||
[assembly: AssemblyTitle("API_NetFramework")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("HP Inc.")]
|
||||
[assembly: AssemblyProduct("EDOKAAPI_NetFramework")]
|
||||
[assembly: AssemblyProduct("API_NetFramework")]
|
||||
[assembly: AssemblyCopyright("Copyright © HP Inc. 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Optimization"/>
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="EDOKAAPI_NetFramework" />
|
||||
<add namespace="API_NetFramework" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
942b2d4e67bb732c6950f094d49345a38a8b2c4b5250c74e74f00b9d9c7c42ec
|
||||
1f5e2a8c236051250ee12029641cd4e4f69daea7ac8bbc705dd4675addd59fbb
|
||||
|
||||
@@ -126,10 +126,6 @@ E:\Software-Projekte\OnDoc\OnDoc\EDOKAAPI_NetFramework\obj\Debug\API_NetFramewor
|
||||
E:\Software-Projekte\OnDoc\OnDoc\EDOKAAPI_NetFramework\obj\Debug\API_NetF.7D617477.Up2Date
|
||||
E:\Software-Projekte\OnDoc\OnDoc\EDOKAAPI_NetFramework\obj\Debug\EDOKAAPI_NetFramework.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\EDOKAAPI_NetFramework\obj\Debug\EDOKAAPI_NetFramework.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\API_NetFramework.csproj.AssemblyReference.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\API_NetFramework.csproj.CoreCompileInputs.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\EDOKAAPI_NetFramework.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\EDOKAAPI_NetFramework.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\libSkiaSharp.dylib
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\x86\libSkiaSharp.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\x64\libSkiaSharp.dll
|
||||
@@ -253,4 +249,8 @@ E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Web.WebPages.res
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Web.WebPages.Deployment.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Web.WebPages.Razor.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\bin\de\System.Web.Optimization.resources.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\API_NetFramework.csproj.AssemblyReference.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\API_NetFramework.csproj.CoreCompileInputs.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\API_NetF.7D617477.Up2Date
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\EDOKAAPI_NetFramework.dll
|
||||
E:\Software-Projekte\OnDoc\OnDoc\API_NetFramework\obj\Debug\EDOKAAPI_NetFramework.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user