Code Monkey home page Code Monkey logo

express_sweater_weather's People

Contributors

pschlatt avatar

Watchers

 avatar

express_sweater_weather's Issues

User Account Creation

As a user, when I send a POST http request with my email, password and password confirmation in the body to /api/v1/users, I receive a response with a status of 201 and an API Key to be used in confirming future authentication.

Craft README

Create Basic README upon first deployment to production. Update when necessary and finalize upon feature and testing completion.

A User Can Delete a Favorite Location

As a registered User, when I send a DELETE http request with a body containing a location and my valid API Key to /api/v1/favorites, I receive a response with the status of 204 and no body. If my API Key is invalid, I receive of response with a status of 401 (Unauthorized)

User Can View Favorite Locations

As a registered User, I send a POST http request with the body containing my API Key to /api/v1/favorites, I receive a response with a status of 200 and a body containing all my locations and their current weather. If my API Key is invalid, I receive a status of 401 (Unauthorized)

User Can "Favorite" Locations

As a User, I am logged in. When I send a POST http request containing a location and the correct API Key associated with my account in the body to /api/v1/favorites, I receive a successful response containing the status 200 and a body that reads "message": "*location* has been added to your favorites". If the API key is invalid, I receive a response with the status being 401 (Unauthorized)

User Inquires Forecast Info for Location

As a User, when I send a GET http request with a body containing my API Key from logging in and a location to /api/v1/forecast?, I receive a response containing 8 hourly object and 7 daily objects. If I do not include an API Key or include an Invalid API Key, the response will contain a status of 401 (Unauthorized)

User Logs in

As a User, when I send a POST http request with my email and password in the body to /api/v1/sessions I receive a response with a status of 200. In the body, my API Key is included and matches my original.

Create Repo

Initialize and create first commit and merge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.