Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Move and clean endpoints #170

Open
Tracked by #168
nyakase opened this issue Apr 14, 2022 · 2 comments
Open
Tracked by #168

Move and clean endpoints #170

nyakase opened this issue Apr 14, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nyakase
Copy link
Member

nyakase commented Apr 14, 2022

What is an endpoint, what isn't, and how to access them, is a bit unclear. In addition, some of them could work better.

Decide what endpoints should be used by the general public

Self-explanatory.

Move endpoints (done!)

Endpoints should be moved to api.vukkybox.com/endpointName or vukkybox.com/api/endpointName (or similar options) to make them easier to distinguish from normal pages.

Clean endpoints

The design of some endpoints are, uh... messy and probably need some refactoring. Gallery viewing currently exists in the form of scraping gallery pages. Seeing the list of Vukkies involves fetching a not-updated-frequently vukkies.json on GitHub, or getting the latest Vukky list by... scraping gallery pages. Not ideal. Hold on, these are just ideas for new endpoints, aren't they? What am I saying here? I forgot?

@nyakase nyakase mentioned this issue Apr 14, 2022
4 tasks
@nyakase nyakase changed the title Move those endpoints to api.vukkybox.com/* or vukkybox.com/api/* and make them easier to use if necessary Move and clean endpoints Apr 14, 2022
@nyakase nyakase added the enhancement New feature or request label Apr 14, 2022
@emilianya
Copy link
Collaborator

erm, vukkies.json is available in /resources/vukkies.json
User gallery can be acquired from /stats much much better than gallery page

@nyakase
Copy link
Member Author

nyakase commented Apr 18, 2022

erm, vukkies.json is available in /resources/vukkies.json

Ha! I didn't know that. It should probably be somewhere more logical though, like other endpoints.

User gallery can be acquired from /stats much much better than gallery page

What if you want to view other people's galleries?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants