On Mon, Jul 2, 2012 at 3:06 PM, Pete Johanson <
lat...@gmail.com> wrote:
> These tools all seem to focus on documenting *resources*, instead of
> media types, link relations, forms, etc.
>
> What are people's take on this as the focus of documentation? It seem
> to me that a tool that would understand various hypermedia types (e.g.
> HAL, XHTML, JSON-LD) and allow documenting the media types, link
> relations, etc would put the focus on the right concepts.
>
> Thoughts? Any tools out there that do this already?
The HAL browser gives you a GUI for traversing through an app that
exposed with HAL. The link relation URIs are clickable and bring up
the corresponding documentation in-line.
This is my preferred approach for documenting a hypermedia API: expose
it with a generic type such as HAL, use URIs for the link relations,
expose documentation at the link relation URIs, and expose a sandbox
version of the application that can be traversed with the HAL browser.
here's an example of dtime using this approach:
http://explorer.dtime.com/
Cheers,
M