Giter Club home page Giter Club logo

giftbox's Introduction

GiftBOX

  • Back end API to support the Gentoo gift application

API Documentation

In order to create an account a request needs to be sent to the following endpoint. A token will be sent back in the response which needs to be sent in the header for authorization: { Authorization: token }

  • URL

    /register

  • Method:

    POST

  • URL Params

    Required:

    Optional:

  • Data Params

    Required:

    email=[string] password=[string] username=[string] first_name=[string] last_name=[string]

  • Success Response:

    • Code: 200
      Content: { "user": { "id": 9, "email": "[email protected]", "created_at": "2016-07-26T18:50:47.647Z" }, "token": "401f1dacf-6423e-4969-87b9-d2he6c66294c", "token_expires": "2016-08-09T18:50:47.664Z" }
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: { error : "Log in" }

    OR

    • Code: 422 UNPROCESSABLE ENTRY
      Content: { error : "Email Invalid" }
  • Notes:

    Sends back token that needs to be stored for further authentication inside the Gentoo app


  • URL

    /:username/friends

  • Method:

    POST

  • URL Params

    Required:

    username=[string]

    Optional:

  • Data Params

    Required:

    requested_friend=[string]

  • Success Response:

    • Code: 200
  • Error Response:

    • Code: 401 UNAUTHORIZED
      Content: { error : "Log in" }

    OR

    • Code: 422 UNPROCESSABLE ENTRY
      Content: { error : "Email Invalid" }
  • Notes:

    Creates friend request for username passed under the requested_friendship parameter

giftbox's People

Contributors

vegajdr 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.