Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 832 Bytes

File metadata and controls

28 lines (21 loc) · 832 Bytes

Our server implements the following api:

URL HTTP Verb POST Body Result
/users GET empty Return JSON of all users (requires authorization header)
/signup POST JSON Create new user
/users/:id GET empty Return JSON of single user with matching id

For the signup, the JSON representation of a single user looks like this:

  {
      name: name,
      email: email,
      password: password
  }

For the login, the JSON representation for the user should follow:

{
  email: email,
  password: password
}