INFO 253A: Frontend Web Architecture
Kay Ashaolu
Representational State Transfer
Pros
Cons
Pros
Cons
Pros
Cons
Pros
Cons
{
"business": "http://yelp.com/biz/27",
"user": "http://yelp.com/user/5",
"review_text": "..."
}
data = {
"business_id": 27,
"user_id": 5
"review_text": "..."
}
fetch(`http://yelp.com/biz/${data["business_id"]}`).then((response) => {
...
});