Himanshu Yadav
Himanshu Yadav

Reputation: 13585

Calling Rest API from a markdown template

Is it possible to make a call to a rest api and process the JSON response from it?

There is a requirement I am working on to show the status of different services documented using markdown. Or if there is a way to run custom javascript code, that will work too.

Upvotes: 1

Views: 2132

Answers (1)

Evert
Evert

Reputation: 99531

IF your markdown interpreter supports inline javascript, then maybe. I imagine a lot of markdown interpreters will have this disabled as it's unsafe.

The answer depends both on the markdown interpreter itself (there's no 1 hard standard, and everyone has extensions) and it depends on how its configured.

I would say that it's likely that this will not work, but it might be possible

Upvotes: 2

Related Questions