Mermade/shins

Injecting API key dynamically

aroach opened this issue · 2 comments

Once a user is logged into our site, I'd like to be able to inject a user's API key dynamically into the API calls within the documentation. I'm using Widdershins to generate the base docs from OpenAPISpec, and wondering if I would need to add a div/id into the generated Markdown, and then have some custom JS in Shins to accomplish this.

Has anyone achieved a scenario like this?

I don't know of anyone already implementing this, but done how you suggest, it should be pretty easy.

Ok cool @MikeRalphson I'll add a ticket/question in Widdershins, since that seems to be where the "major" work would need to be done.