Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favoriting Locations #8

Open
2 tasks done
Mackenzie-Frey opened this issue Apr 29, 2019 · 0 comments
Open
2 tasks done

Favoriting Locations #8

Mackenzie-Frey opened this issue Apr 29, 2019 · 0 comments
Assignees

Comments

@Mackenzie-Frey
Copy link
Owner

Mackenzie-Frey commented Apr 29, 2019

When a user sends a POST request to /api/v1/favorites, in the format of JSON, and with the following in the body:

body:

{
  "location": "Denver, CO",
  "api_key": "jgn983hy48thw9begh98h4539h4"
}

The user receives the following response:

status: 200
body:

{
  "message": "Denver, CO has been added to your favorites",
}
  • If no API key is provided it returns 401 (Unauthorized)
  • If an incorrect API key is provided it returns 401 (Unauthorized)
@Mackenzie-Frey Mackenzie-Frey created this issue from a note in Express Sweater Weather (Next Steps) Apr 29, 2019
@Mackenzie-Frey Mackenzie-Frey self-assigned this Apr 30, 2019
@Mackenzie-Frey Mackenzie-Frey moved this from Next Steps to In Progress in Express Sweater Weather May 3, 2019
@Mackenzie-Frey Mackenzie-Frey moved this from In Progress to Merged in Express Sweater Weather May 5, 2019
@Mackenzie-Frey Mackenzie-Frey moved this from Merged to In Progress in Express Sweater Weather May 5, 2019
@Mackenzie-Frey Mackenzie-Frey moved this from In Progress to Deployed in Express Sweater Weather May 5, 2019
@Mackenzie-Frey Mackenzie-Frey moved this from Deployed to Successfully Deployed in Express Sweater Weather May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Express Sweater Weather
  
Successfully Deployed
Development

No branches or pull requests

1 participant