5.1 api-endpoints-and-spa-routes.pdf.pdf

RadenJuna 4 views 2 slides Jun 10, 2024
Slide 1
Slide 1 of 2
Slide 1
1
Slide 2
2

About This Presentation

sadasdasdasdasdasdas


Slide Content

API Endpoints
/api/users/…/api/places/…
GET …/
POST …/signup
POST …/login
Retrieve list of all users
Create new user + log user
in
Log user in
GET …/user/:uid
GET …/:pid
POST …/
Retrieve list of all places for
a given user id (uid)
Get a specific place by place
id (pid)
Create a new place
PATCH …/:pid
Update a place by id (pid)
DELETE …/:pid
Delete a place by id (pid)

SPA Pages
/ List of Users
/:uid/placesList of Places for Selected User
/authenticateSignup + Login Forms
/places/newNew Place Form
/places/:pidUpdate Place Form
Always
reachable
Always
reachable
Only un-
authenticated
Only
authenticated
Only
authenticated