API Routes - dech0n/hobby-hub GitHub Wiki
(edit paths as needed)
Wheelhouse Statuses
-
A logged in user may change the Wheelhouse Status of any of their Hobbies, moving it to the corresponding Wheelhouse Status list (i.e. Want to Learn, Learning, Learned) or removing it from their Wheelhouse entirely.
POST /api/wheelhouses/:id/hobbies/:id
PUT /api/wheelhouses/:id/hobbies/:id
DELETE /api/wheelhouses/:id/hobbies/:id
-
A logged in user may view a list of Hobbies grouped according to hobby status from the Wheelhouse page without causing a refresh/redirect.
GET /api/wheelhouse/:status
Experiences
-
A logged in user may add, remove or edit one of their own Experiences, removing it from the list of visible Experiences without causing a refresh/redirect.
POST /api/hobbies/:id/experiences
PATCH /api/experiences/:id
DELETE /api/experiences/:id
Resources
- A logged in user may add, remove or edit a resource to one of their own hobbies, adding it to the list of visible resources without causing a refresh/redirect.
- `POST /api/hobbies/:id/resources`
- `PATCH /api/resources/:id`
- `DELETE /api/resources/:id`