apiblueprint - How do I get Apiary model details from the rendered documentation? -



apiblueprint - How do I get Apiary model details from the rendered documentation? -

i have api contract defined in apiary , i'm using resource model syntax enable reuse of payloads.

the documentation rendered apiary shows model name though (eg response 200 returns [foo][]) - without farther details on foo is, or link view attributes in foo model.

given model, how see attributes in rendered documentation?

update relevant part of contract below:

### manipulating specific organisation [/organisations/{id}] operations retrieve , update specific organisation. + parameters + id (required, guid, `f339ada5-e836-40fe-8e90-bef06892762e`) ... guid organisation `id`. + model (application/json) + headers link : <http://foobar.com/organisations/f339ada5-e836-40fe-8e90-bef06892762e>;rel="self" + body { "id" : "f339ada5-e836-40fe-8e90-bef06892762e", "name" : "joe's gardening supplies" } ### retrieve organisation [get] + response 200 [organisation][] ### update organisation [patch] + request [organisation][] + response 204

unless provide example, it's guessing, first guess wrong level of indentation. how illustration design like:

format: 1a host: http://www.google.com # model illustration notes api *short texts saving* service similar physical paper presence on table. # grouping notes notes related resources of **notes api** ## note [/notes/{id}] single note object details + parameters + id (required, number, `1`) ... numeric `id` of note perform action with. has illustration value. + model + header x-my-header: value + body { "id": 2, "title": "pick-up posters post-office" } ### retrieve note [get] + response 200 (application/json) [note][] ### remove note [delete] + response 204

code above results in this documentation, model correctly incorporated on places it's referenced (and such reference supported - i.e. definition of payload).

sometimes it's helpful read raw version of apiary's docs on github, because it's easier spot right, exact format way.

apiblueprint apiary.io

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -