Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

List Games #1

Open
oestrich opened this issue Oct 2, 2019 · 2 comments
Open

List Games #1

oestrich opened this issue Oct 2, 2019 · 2 comments
Labels
hacktoberfest Hacktoberfest issue

Comments

@oestrich
Copy link
Owner

oestrich commented Oct 2, 2019

The start screen of the application should list all live games. This is fetched via:

curl https://grapevine.haus/games -H "Accept: application/json"

There are pagination links at the bottom that let you fetch the rest of the collection. 20 results are returned at a time.

For start, the name and tagline in a list view is enough.

@oestrich oestrich added the hacktoberfest Hacktoberfest issue label Oct 2, 2019
@pbfrias17
Copy link

is there an api for this? fetching gives me html

@oestrich
Copy link
Owner Author

oestrich commented Oct 6, 2019

Yeah, you need to add the accept header to get JSON back. That curl command should work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hacktoberfest Hacktoberfest issue
Projects
None yet
Development

No branches or pull requests

2 participants