I work for QA Wolf. We write and maintain end-to-end tests for web apps. If you're interested, check out qawolf.com
mattkleinsmith / auth-me Goto Github PK
View Code? Open in Web Editor NEWApp Academy practice
App Academy practice
I work for QA Wolf. We write and maintain end-to-end tests for web apps. If you're interested, check out qawolf.com
Creates and returns a new spot.
id
, ownerId
, address
, city
,state
, country
, lat
, lng
, name
, description
, price
, createdAt
,updatedAt
address
, city
, state
, country
, lat
, lng
, name
, description
, or price
are violatedReuse Spot Creation form.
When clicking the edit button, set ui.spot.
Create and return a new review for a spot specified by id.
id
, userId
, spotId
, review
,stars
, createdAt
, and updatedAt
review
or stars
are violatedid
Returns all the reviews that belong to a spot specified by id.
id
, userId
, spotId
, review
,stars
, createdAt
, and updatedAt
User
, including the id
,firstName
, and lastName
ReviewImages
, an array of imageid
and url
id
Delete an existing booking.
message
indicating a successful deletionid
startDate
(no deleting of current or past bookings)All endpoints that require a current user to be logged in receive a standard
authentication response.
All endpoints that require a current user to have the correct role(s) or
permission(s) receive a standard authorization response.
Returns the details of a spot specified by its id.
id
, ownerId
, address
, city
,state
, country
, lat
, lng
, name
, description
, price
, createdAt
,updatedAt
numReviews
and avgStarRating
SpotImages
, an array of imageid
, url
, and preview
Owner
, including the id
,firstName
, and lastName
id
Returns all the reviews written by the current user.
id
, userId
, spotId
, review
,stars
, createdAt
, and updatedAt
User
, including the id
,firstName
, and lastName
Spot
, including the id
,ownerId
, address
, city
, state
, country
, lat
, lng
, name
,price
, and previewImage
ReviewImages
, an array of imageid
and url
Return spots filtered by query parameters.
page
, size
, minLat
, maxLat
,minLng
, maxLng
, minPrice
, and maxPrice
page
and size
parametersid
, ownerId
, address
, city
,state
, country
, lat
, lng
, name
, description
, price
, createdAt
,updatedAt
, and previewImage
for each spotpage
and size
of the returned payloadpage
, size
, minLat
, maxLat
, minLng
, maxLng
, minPrice
, ormaxPrice
are violatedCreates a new user, logs them in as the current user, and returns the current
user's information.
id
, firstName
, lastName
,email
, and token
email
, firstName
, or lastName
are violatedReturns all the spots owned (created) by the current user.
id
, ownerId
, address
, city
,state
, country
, lat
, lng
, name
, description
, price
, createdAt
,updatedAt
, previewImage
, and avgRating
Delete an existing image for a Review.
message
indicating a successful deletionid
Return all the bookings for a spot specified by id.
spotId
, startDate
, and endDate
for each bookingid
spotId
, userId
, startDate
, endDate
, createdAt
, and updatedAt
forUser
, including the id
, firstName
, and lastName
id
Return all the bookings that the current user has made.
id
, spotId
, userId
, startDate
,endDate
, createdAt
, and updatedAt
Spot
, including the id
,ownerId
, address
, city
, state
, country
, lat
, lng
, name
,price
and previewImage
Update and return an existing booking.
id
, userId
, spotId
, startDate
,endDate
, createdAt
, and updatedAt
id
endDate
(no editing of past bookings)Update and return an existing review.
id
, userId
, spotId
, review
,stars
, createdAt
, and updatedAt
review
, or stars
are violatedid
Add UNIQUE to [SpotImage.spotId, SpotImage.preview === 1]
Might need to do this in JS
Updates and returns an existing spot.
id
, ownerId
, address
, city
,state
, country
, lat
, lng
, name
, description
, price
, createdAt
,updatedAt
address
, city
, state
, country
, lat
, lng
, name
, description
, or price
are violatedid
See new DB diagram
Returns all the spots.
id
, ownerId
, address
, city
,state
, country
, lat
, lng
, name
, description
, price
, createdAt
,updatedAt
, previewImage
, and avgRating
Delete an existing image for a Spot.
message
indicating a successful deletionid
Returns the information about the current user that is logged in.
id
, firstName
, lastName
, username
, andemail
Create and return a new booking from a spot specified by id.
id
, userId
, spotId
, startDate
,endDate
, createdAt
, and updatedAt
id
Create and return a new image for a spot specified by id.
id
, url
, and preview
id
Create and return a new image for a review specified by id.
id
and url
id
Delete an existing review.
message
indicating a successful deletionid
Deletes an existing spot.
message
indicating a successful deletionid
Logs in a current user with valid credentials and returns the current user's
information.
id
, firstName
, lastName
,email
, and token
email
, firstName
, or lastName
are violatedA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.