tags:

views:

256

answers:

2

I've recently started on a project to build out a RESTful API in WCF, and I'm going to need to expose documentation along with the API itself. I was hoping to leverage the XML code comments in my docs for this documentation.

But what I want to output is just the contracts that are exposed by the service: the endpoints and the JSON/XML object structures. Since I'm trying to create external documentation, I'm interested in any of the internals of my library, or how it ties into the .Net Framework (or even that it is .Net, for that matter).

What are my options for tools, to create these docs? I've heard that Sandcastle or Doxygen are good tools for generating docs from XML code comments, but can I filter away the classes and methods that I don't want to expose?

A: 

You could config doxygen to generate document from files speficied. Why not have a look a the documents of doxygen?

ablmf
+1  A: 

Sure, you can filter unwanted APIMembers with Sandcastle. This blogentry describes how. If you are new to Sandcastle, you might want to try out Sandcastle Help File Builder as well, which is basically a Sandcastle Frontend.

tobsen
+1 - SHFB is a lifesaver, and cuts down the time to configure your output to the point that it is painless. I have also worked with integrating it with my Team Build process, so we always have up to date documentation.
joseph.ferris