card_codex icon indicating copy to clipboard operation
card_codex copied to clipboard

Create API for use by other applications.

Open TheCDC opened this issue 5 years ago • 0 comments

I've been using Card Codex since the first Reddit post advertising its existence and figure it was time to give back.

This change exposes the context object previously only used to in rendering templates at the /api/ url.

For example, /api/?card=River%20Hoopoe returns a JSON response for the results of searching for River Hoopoe instead of rendered HTML. It also accepts the &page=N url parameter.

TheCDC avatar Mar 01 '20 23:03 TheCDC