8000 GitHub - TonyNguyen87/cute_rates
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TonyNguyen87/cute_rates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cute_rates API

Welcome to cute rates, a service for rating cute things.

General Rules

Authorization

All authorized requests unless otherwise mentioned require a "Auth-Token" header to be present. Users are assigned an Auth Token during account creation.

Errors

Any request that fails to be processed will contain an "errors" key in the returned JSON describing the problem.

Routes

POST /signups

This route is present for the signup of new users.

Params:

  • first: string
  • last: string
  • email: string
  • password: string

Returns 201 Created on Success and 422 Unprocessable Entity in case of failure.

Request:

{
  "first": "Brit",
  "last": "Butler",
  "email": "brit@lies.com",
  "password": "cookies"
}

Response:

{
  "user": {
    "first_name": "brit",
    "last_name": "butler",
    "email": "brit@lies.com",
    "auth_token": "7774743beeb3c26dfdd80213ba1b9097"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 81.5%
  • HTML 14.5%
  • CSS 2.0%
  • JavaScript 2.0%
0