How can I add images/diagrams to API Blueprint?
Asked Answered
S

2

6

We would like to integrate images into our API documentation on Apiary, as a way of documenting the underlying application architecture or to illustrate sample workflows/sequence diagrams. However, a search through Apiary documentation and the API Blueprint Specification don't seem to yield any results on how this can be done.

Is it possible to add images to API Blueprint? Or do these images have to be hosted externally and referenced by URL?

Sandler answered 14/12, 2015 at 18:45 Comment(0)
E
14

David - API Blueprint is based on Markdown syntax (as are many other places including GitHub comments). You can use the following syntax to insert an image into Markdown (and API Blueprint):

![name](/url)

These images indeed need to be hosted externally and referenced via URL.

Evadne answered 15/12, 2015 at 1:38 Comment(1)
Do we have access to the dimensions?Allegraallegretto
P
2

As described in another answer:

![alternative text](/url)

Or on linux for a local image:

![alternative text](./image.png)

but if you want to specify the image size, use html directly

<img src="image.png" alt="image alternative text" width="500"/>
Pewee answered 1/12, 2020 at 12:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.