transportapi / api-console

A Web Component for an interactive REST console based on RAML files
Other
0 stars 0 forks source link

Establish tidy division between "API Reference" and other "Documentation" #9

Open harry-wood opened 8 years ago

harry-wood commented 8 years ago

Idea: Establish tidy division between "API Reference" and other "Documentation". Have these as top level headings, maybe in a navigation bar near the top of the site. Design inspiration. Something Tom pointed to just now. See the navigation on the Pingdom API docs: https://developer.serverdensity.com/docs [Update: navigation since moved to the top right]

The API Reference is powered by the RAML api-console. The other "documentation" (or we could call it "manual" or something) would be powered by ...something else... (naturally the old clunky 3scale CMS, or wordpress could do it). But "tidy division" means we make some efforts to make the two things look like part of the same website. This is important.

This is a line of thinking I'd forgotten about actually, but I think this idea can alleviate some of the issues with the RAML api-console. I actually started down this route to some extent by labelling the raml output as "API Reference" here.

This goes some way towards tackling a couple of issues:

madwort commented 8 years ago

I don't think we should be aiming to have a lot of documentation linkable as a classic website, only a few things that don't make sense in RAML. In the example given, the "Documentation" content is a couple of worked examples of using their API and a couple of general comments. It does not duplicate any endpoint docs outside from that which is necessary to get the worked examples going. Ideally they would be slickly integrated in the manner of that example - that's the gold standard I'd like to aim for - but I think this is unrealistic in the short to medium term, and I think we should focus on the content first.