For a service with webHttpBinding and helpEnabled=”true”, the help information is getting generated properly. Was wondering if it is possible to control the output somehow. Below are the changes I would like to make.
- Remove the JSON help as the service doesn’t support JSON output. Having it there might be confusing to users. At least, have a way to output a note saying JSON is not supported.
- For the example replies shown, use a better example than “String content” where actual value samples can be specified. Would be good if I can supply the object that is used for being serialized as example.
The help page for WCF WebHttp endpoints cannot be customized. You can, however, replace it with your own custom page. It’s easy to be implemented, but it’s a lot of code to write. The example below shows how this can be done for a simple service.