NSwag icon indicating copy to clipboard operation
NSwag copied to clipboard

Implement WcfWebHttpServiceToSwaggerGenerator: Swagger generator for WCF WEB HTTP Service

Open IlCimbro opened this issue 9 years ago • 8 comments

Hi Gus, i have a REST API developed in c# WCF service and working good. I would like to use Nswag to generate yaml files. But using NSwag Studio or AssemblyTypeToSwaggerGenerator, i got no operations. How can i get them? Am i using wrong approach? Regards Daniele

IlCimbro avatar Nov 17 '16 17:11 IlCimbro

Only Web API web services are supported. I think you cannot describe a SOAP web service with the Swagger spec...

RicoSuter avatar Nov 17 '16 18:11 RicoSuter

I'm not speaking about a soap service. i'm speaking about a REST API implemented with WCF technology.. i think stupid to have to migrate to web api only for doc same methods :-(

IlCimbro avatar Nov 18 '16 10:11 IlCimbro

Are you talking about this service model: https://msdn.microsoft.com/en-us/library/bb412172(v=vs.110).aspx ?

The rules and attributes are completely different than Web APIs and thus a new Swagger generator has to be implemented...

Therefore it is not supported and the feature is not planned at the moment... You can implement this yourself but it will be not that simple.

RicoSuter avatar Nov 18 '16 11:11 RicoSuter

Yes, i moved project to WebAPi

IlCimbro avatar Nov 23 '16 13:11 IlCimbro

Ok, i think we should close this issue... I think the user base for this feature is too small...

RicoSuter avatar Nov 23 '16 20:11 RicoSuter

@RSuter I'm looking into implementing WcfRestWebServiceToSwaggerGenerator. Please let me know if there are any updates since your last comments.

poulad avatar Dec 09 '17 15:12 poulad

@pouladpld Still the same, I do not plan to implement it personally. Is it really worth the effort considering the user base?

RicoSuter avatar Dec 11 '17 11:12 RicoSuter

Any progress on this? I have a WCF net48 site, that's using swaggerwcf to produce a swagger ui, but I'd like to automate a TypeScript client build process using Roslyn during build

simonegli8 avatar Apr 14 '24 15:04 simonegli8