express_sweater_weather's Introduction
express_sweater_weather's People
express_sweater_weather's Issues
Invalid City
When a GET request is made to /api/v1/forecast with a query parameter of location that has a value of an invalid city and a user's API key, a response is returned a 404 status.
Failed Forecast Request
When a GET request is made to /api/v1/forecast with a query parameter of location that has a value of a valid (real) city but no user's API key, a response is returned with a 401 status.
Add testing for all routes
POST api/v1/users
POST api/v1/sessions
GET api/v1/forecast?location=city,state
POST api/v1/favorites
GET api/v1/favorites
DELETE api/v1/favorites
Favorites
Login
Successful Forecast Request
When a GET request is made to /api/v1/forecast
with a query parameter of location
that has a value of a valid (real) city and a user's API key, a response is returned with the forecast: 7 days, 12 hours and current.
Successful Account Creation
When a request from /api/v1/users sends a body with an email and valid password and password confirmation a response with a 201 code is returned with an API key that is created for the account.
Successful Login
When a POST request is sent to /api/v1/sessions with a body containing a valid email and password, a response with a status of 200 with that user's API key is returned.
Adding a Favorite City
When a POST request is made to /api/v1/favorites
that has a body with a valid (real) city and a user's API key, a response is returned with a 200 status and a message indicating that city has been saved to their favorites.
Account Creation
City Forecast
Deleting a Favorite City
When a DELETE request is sent to api/v1/favorites
that has a body that includes a favorited city and a user's API key, that city is removed from that user's list of favorites.
Listing Favorited Cities
When a GET request is made to /api/v1/favorites that has a body with a user's API key, a response is returned with a 200 status and a list of cities that have been favorited by that user along with the current forecast for those cities.
Deploy
Deploy app to Heroku with complete functionality.
Failed Login
When a POST request is made to /api/v1/sessions with and invalid email and or password, a response of 409 is returned.
Failed Account Creation
When a user sends a request to /api/v1/users with an invalid email and or password a response is returned with a status of 409.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.