| | |
| | | using Owin; |
| | | using Swashbuckle.Application; |
| | | |
| | | [assembly: OwinStartup(typeof(HH.WCS.JiaTong.Startup))] |
| | | [assembly: OwinStartup(typeof(HH.WCS.JiaTong_DCJ.Startup))] |
| | | |
| | | namespace HH.WCS.JiaTong { |
| | | namespace HH.WCS.JiaTong_DCJ { |
| | | public class Startup { |
| | | public void Configuration(IAppBuilder app) { |
| | | // æå
³å¦ä½é
ç½®åºç¨ç¨åºç详ç»ä¿¡æ¯ï¼è¯·è®¿é® https://go.microsoft.com/fwlink/?LinkID=316888 |
| | |
| | | config.MapHttpAttributeRoutes(); |
| | | config.EnableSwagger(c => { |
| | | c.SingleApiVersion("v1", "hh wms api"); |
| | | c.IncludeXmlComments(System.AppDomain.CurrentDomain.BaseDirectory + "\\HH.WCS.JiaTong.LISTA.xml"); |
| | | c.CustomProvider((defaultProvider) => new SwaggerCacheProvider(defaultProvider, $@"{System.AppDomain.CurrentDomain.BaseDirectory}\\HH.WCS.JiaTong.xml")); |
| | | c.IncludeXmlComments(System.AppDomain.CurrentDomain.BaseDirectory + "\\HH.WCS.JiaTong_DCJ.LISTA.xml"); |
| | | c.CustomProvider((defaultProvider) => new SwaggerCacheProvider(defaultProvider, $@"{System.AppDomain.CurrentDomain.BaseDirectory}\\HH.WCS.JiaTong_DCJ.xml")); |
| | | c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First()); |
| | | } |
| | | ).EnableSwaggerUi(c => { |