Hello, i been trying to implement swagger on my odata 3 project , but i 
haven't been successful with this task.


 GlobalConfiguration.Configuration 
> .EnableSwagger(c =>
> {                       
>     c.SingleApiVersion("v1", "NB.EAM.WebAPI.Odata");
>
>     var baseDirectory = AppDomain.CurrentDomain.BaseDirectory;
>     var commentsFileName = Assembly.GetExecutingAssembly().GetName().Name + 
> ".XML";
>     var commentsFile = Path.Combine(baseDirectory, "bin", commentsFileName);
>     c.IncludeXmlComments(commentsFile);
>
>     c.DocumentFilter<ApplyResourceDocumentation>();
>
>     c.CustomProvider(defaultProvider => new 
> ODataSwaggerProvider(defaultProvider, c, 
> GlobalConfiguration.Configuration).Configure(odataConfig =>
>     {
>
>         odataConfig.IncludeNavigationProperties();
>     }));
> })
> .EnableSwaggerUi(c =>
> {                        
> });
>
>

> var swagConfig = new HttpSelfHostConfiguration("http://localhost:24320";);


> SwaggerConfig.Register();

WebApiConfig.Register(swagConfig);


> using (var server = new HttpSelfHostServer(swagConfig))

{

    server.OpenAsync().Wait();

}


my doc only returns this to me:



{
 "swagger": "2.0",
  "info": {
     "version": "v1",
     "title": "Glose.EAM.WebAPI.V4"
  },
  "host": "localhost:24320",
  "schemes": [
     "http"
   ],
  "paths": {},
  "definitions": {}
}

 

>  any idea?

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to