Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the /api/arcade/shop/ endpoint for better documentation #143

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,28 @@ Example Response:
}
```


### GET `/api/clock/:slackId`
Depreciated.

Responds with unix timestamp of the expected end time of the current session for the user.

### GET `https://hackclub.com/api/arcade/shop/`
Get all items from the shop with stock if applicable

Example Response:
```json
[
{
"name": "USB-C Charger",
"smallName": "(30W)",
"description": "Small, uses the latest GaN technology, & charges fast - pretty sweet!",
"hours": 6,
"imageURL": "https://cloud-lit9nkas9-hack-club-bot.vercel.app/051t9lfjeuml._ac_sl1500_.png",
"stock": 47
}
// etc
]
```