express_sweater_weather's People
express_sweater_weather's Issues
User Login
As A User
When I send a POST request to '/api/v1/sessions'
With a body with my previously registered email and password
I get a 200 response
With a body that has my API key
User Sees Forecast (Sad Path)
As a User
When I send a GET request to '/api/v1/forecast'
With a location in the query params (i.e. '?location=denver,co')
WITHOUT an api_key in the body
I get a 401 response
User sees Forecast for a City
As a User
When I send a GET request to '/api/v1/forecast'
With a location in the query params (i.e. '?location=denver,co')
And an api_key in the body
I get a response body that has:
-
the location
-
An object with the current weather forecast that contains the following:
- summary, icon, precipIntensity, precipProbability, temperature, humidity, pressure, windSpeed, windGust, windBearing, cloudCover, visibility
- An hourly object that has a summary, an icon, and an array of 8 hourly weather objects which each contain the following:
- time, summary, icon, precipIntensity, precipProbability, temperature, humidity, pressure, windSpeed, windGust, windBearing, cloudCover, visibility
- A daily object that has a summary, an icon and an array of 7 daily weather objects which each contain the following:
- time, sunriseTime, sunsetTime, precipIntensity, precipIntensityMax, precipIntensityMaxTime, precipProbability, precipType, temperatureHigh, temperatureLow, humidity, pressure, windSpeed, windGust, cloudCover, visibility, temperatureMin, temperatureMax
User Can See Their Favorites List
As A User
When I send a GET request to '/api/v1/favorites'
With a body that contains my API key
I get a 200 response
That has a body that contains objects of my previously favorited locations
The objects contain the location and a current weather forecast that contains the following info:
- summary, icon, precipIntensity, precipProbability, temperature, humidity, pressure, windSpeed, windGust, windBearing, cloudCover, visibility
Sad Path:
If a make the request without my correct API key in the body, I get a 401 response
User Can Favorite A Location
As A User
When I submit a POST request to '/api/v1/favorites'
With a body that has a location and my api key
I get a 200 response
With a body that has a message that that location has been added to my favorites
Sad Path:
If I do the above without an API key, I get a 401 response.
User Login (Sad Path)
As A User
When I send a POST request to '/api/v1/sessions'
WITHOUT a body with my previously registered email and password
I get a 401 response
User Account Creation
As a previously unregistered user
When I send a POST request to '/api/v1/users'
With a body that has an email, password, and password confirmation
I receive a 201 status
With an API key in the body of the response
User Can Remove Favorites
As A User
When I submit a DELETE request to '/api/v1/favorites'
with a body that contains my correct API key and a favorited location
I get a 204 response and that location is no longer in my list of favorites
Sad Path:
If I try the above without my correct API key I get a 401 response
User Account Creation (Sad Path)
As a visitor
When I submit a post request to '/api/v1/users'
WITHOUT either a body, password, or password confirmation
I receive a 401 response
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.