ALHelton / rails_engine

0 stars 0 forks source link

Login #31

Open ALHelton opened 1 year ago

ALHelton commented 1 year ago

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

Requirements:

This POST endpoint should NOT call your endpoint like /api/v0/sessions?email=person@woohoo.com&password=abc123, and should NOT send as form data either. You must send a JSON payload in the body of the request

A successful request returns the user’s api key. An unsuccessful request returns an appropriate 400-level status code and body with a description of why the request wasn’t successful.

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image

ALHelton commented 1 year ago

Image