GithubHelp home page GithubHelp logo

cs8-hairschool's Introduction

CS8-hairschool

API URL https://aqueous-cove-88989.herokuapp.com

hairschool endpoints

Logging and Authorization

POST -- /hairschool/rest-auth/registration

Registers a new client.

Property Type Required
username alphanumeric, unique Yes
password1 String at least 8 alpha-numeric characters Yes
password2 String at least 8 alpha-numeric characters, should equal 'password1' Yes
email requires an @ and a . as in a typical email address, unique no

Success

{
  key: 'a123123b321321c123123',
};

Fail

{
  username: 'Reason for failure',
  email: 'Reason for failure',
  password1: 'Reason for failure',
  password2: 'Reason for failure'
}

POST -- /hairschool/rest-auth/registration/verify-email/

POST -- /hairschool/rest-auth/login

// params:
{
  username,
  email,     // Optional
  password,
}

POST -- /hairschool/rest-auth/logout

// params:
{
  // none
}

POST -- /hairschool/rest-auth/password/reset

// params:
{
  email
}

POST -- /hairschool/rest-auth/password/reset/confirm/

// params:
{
  uid,
  token,
  new_password1,
  new_password2
}

POST -- /hairschool/rest-auth/password/change/

// params:
{
  new_password1,
  new_password2,
  old_password
}

// todo

### GET, PUT, PATCH -- `/hairschool/rest-auth/user/`

### POST -- `/hairschool/rest-auth/rest-auth/facebook/`
### POST -- `/hairschool/rest-auth/rest-auth/twitter/`

User Manipulation

GET -- /hairschool

Gets all users in database.

Token must be set in Authorization headers as 'token a123123b321321c123123'

Success

{
  [
    {
      username: 'username',
      email: 'email'
    },
    {
      username: 'username',
      email: 'email'
    },    
    {
      username: 'username',
      email: 'email'
    },
    // ... continues to lists all users
  ]
};

Fail

{
  detail: 'Failure info'
}

cs8-hairschool's People

Contributors

boomer1204 avatar johnjohnx4 avatar lillialskye avatar nourmhassan avatar saashapina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.