Skip to content

yelp-feelers/Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server

Endpoints

users overview

Method Endpoint Action Front-end Request Back-end Response
POST 'api/auth/signup' sign up new user {
 username: String!
 password: String!
}
{
 id: Int!
 username: String!
 token: String!
 tokenExpiration: Int!(mins)
}
POST 'api/auth/login' login user {
 username: String!
 password: String!
}
{
 id: Int!
 username: String!
 token: String!
 tokenExpiration: Int!(mins)
}
GET '/restaurants' get all taco restaurants [Restaurant]
GET '/restaurants/:id/reviews' get all reviews from a restaurant with id (id in url) {
 ...Restaurant
 reviews: {
 ...Original Review
 adju_score: Int!
 }
}

data structure

Restaurant Reviewer Original Review
Fields id: String!
name: String!
true_score: Int!
adju_score: Int!
id: Int!
username: String!
id: String!
reviewer: Reviewer!
review: String!
score: Int!
date_created: Date!
date_updated: Date!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published