Kate-v2 / sweater_weather_web

Mod 4 - Weather App - utilizing Rails BE microservice
0 stars 0 forks source link

Login - Existing User #5

Open Kate-v2 opened 5 years ago

Kate-v2 commented 5 years ago

As a VISITOR/USER, When I visit the landing page, I can see a button to log-in. When I click this button, a form is exposed and I enter:

and hit submit. If I have an account, I will be logged in, and the page will indicate I'm logged in and I will no longer see a login button.

Kate-v2 commented 5 years ago

Kate-v2 commented 5 years ago

POST /api/v1/sessions Content-Type: application/json Accept: application/json

{ "email": "whatever@example.com", "password": "password" }

Kate-v2 commented 5 years ago

status: 200 body:

{ "api_key": "jgn983hy48thw9begh98h4539h4", }