Questions tagged [swagger-wcf]

Generates Swagger (2.0) for WCF services

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.

10 questions
2
votes
2 answers

How do I view my Swagger docs when using SwaggerWcf?

I'm trying to use swaggerwcf to add Swagger to my WCF REST API. I've followed the instructions, but I don't know what URL to use to view my Swagger documentation. I've tried: http://myservername/api-docs…
Mike Taverne
  • 9,156
  • 2
  • 42
  • 58
2
votes
1 answer

Change parameter type in SwaggerWcf

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…
MrFox
  • 4,852
  • 7
  • 45
  • 81
2
votes
1 answer

SWAGGER Error. The server encountered an error processing the request

I'm getting this error in swagger UI. I'm stock in this error for almost 3 days. Please help me what is the problem. I'm using this as my references https://github.com/abelsilva/swaggerwcf [OperationContract] [WebInvoke(Method = "PUT", …
Athan
  • 43
  • 5
2
votes
0 answers

Swagger UI implementation for WCF service

How can i implement Swagger for WCF Rest service ? I have referred following two solutions : swaggerwcf: [1]: https://github.com/abelsilva/swaggerwcf Swaggeratr: [2]: https://github.com/superstator/Swaggeratr But , not able to find the way to…
AniPol
  • 79
  • 1
  • 2
  • 6
0
votes
1 answer

SwaggerWCF configuration for self hosted WCF library

I'm having some difficulties getting SwaggerWCF to load my documentation page, and I'm not sure why. I get no errors, but I also get no Swagger docs either, just a 404 when I visit http://localhost:8733/docs per the endpoint configuration. What am…
ShawnW.
  • 1,771
  • 1
  • 12
  • 12
0
votes
0 answers

Build fails - Type or namespace name 'SwaggerWcf' could not be found - unless I remove PublicKey attribute

SwaggerWcf shows as a broken Nuget reference under project references in VS2017 If I remove the PublicKey attribute from the csproj file, the problem is fixed. Uninstalling and reinstalling via Nuget Gui in VS creates exactly the same failure…
badcop666
  • 121
  • 2
  • 9
0
votes
1 answer

swaggerwcf only works with newtonsoft 8.0.3.0 in a multiproject solution

I am working in a multiproject solution. There's a main project and the rest is referenced (as existing projects). In two projects I had newtonsoft 9.0.1.0, then we decided to integrate swaggerwcf in one of the projects (that has newtonsoft). I…
0
votes
3 answers

WCF SwaggerWCF implementation

I m setting up a WCF service and i want to implement SwaggerWCF for the documantation. i configured like SwaggerWCF docs. But when i want to access doc as http://localhost/RegistrationService/api-docs, it redirects me to…
Mustafa Tığ
  • 101
  • 1
  • 12
0
votes
1 answer

Keep more of the url for requests SwaggerWcf

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…
MrFox
  • 4,852
  • 7
  • 45
  • 81
0
votes
1 answer

Issue with Swagger Wcf Generated Example Code

I'm trying to use https://github.com/abelsilva/swaggerwcf But having issues using it with our WCF methods An example is something like this: public ETemplate GetETemplate(int eTemplateId) We exposed the svc via a webHttpBinding with enableWebScript…
Joe
  • 685
  • 2
  • 8
  • 17