Skip to content

Create API for use by other applications.#5

Open
TheCDC wants to merge 3 commits into
clayadavis:masterfrom
TheCDC:pull-request-api
Open

Create API for use by other applications.#5
TheCDC wants to merge 3 commits into
clayadavis:masterfrom
TheCDC:pull-request-api

Conversation

@TheCDC

@TheCDC TheCDC commented Mar 1, 2020

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant