swaggerwcf | Swagger for WCF - Generates Swagger | REST library
kandi X-RAY | swaggerwcf Summary
kandi X-RAY | swaggerwcf Summary
Generates Swagger (2.0) for WCF services and also provides swagger-ui. With an API described in Swagger you can use multiple Swagger tools like client generators, see swagger-codegen for more details. This project has started as a fork from superstator/Swaggeratr to implement version 2.0 of Swagger.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of swaggerwcf
swaggerwcf Key Features
swaggerwcf Examples and Code Snippets
Community Discussions
Trending Discussions on swaggerwcf
QUESTION
My WCF service is locally hosted like this:
localhost/service.svc
On the server it's hosted like this:
servername/extra/service.svc
When making a request SwaggerWcf uses the base path and adds the configered elements:
localhost/user/parameter
But it should be:
localhost/extra/user/parameter
So I need WCF to not just use the hostname, but also a little more of the url.
I could add it to the SwaggerWcf configuration, which is user
and could be extra/user
. But then it won't work locally anymore.
I've tried adding a Config class that could read configuration attributes statically:
...ANSWER
Answered 2017-May-17 at 20:43Currently there is no way to do it But I'll take a look into this later today
Probably the best way is allowing to override it using Web.config
QUESTION
Swagger allows setting the parameter type but with SwaggerWcf I can't edit this file, it's generated. It's set to body by default, but I need it to be path.
One might think SwaggerWcfParameterAttribute
would allow setting this. But it only allows Description
and Required
.
How can it be set specifically?
...ANSWER
Answered 2017-May-10 at 01:22Did you try using the format in the sample service?
https://github.com/abelsilva/swaggerwcf/blob/master/src/SwaggerWcf.Test.Service/IStore.cs#L48
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install swaggerwcf
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page