GithubHelp home page GithubHelp logo

tasks-api's Introduction

API Endpoint

POST /api/register

Create a new user

Request Body

  • email (string)
  • password (string)

Responses

  • status (number)
  • token (string)

POST /api/login

Login with an existing user

Request Body

  • email (string)
  • password (string)

Responses

  • status (number)
  • token (string)

GET /api/account

Fetch informations related to the logged in user

Responses

  • status (number)
  • rewards (number)
  • groups (object)

GET /api/tasks

Get all tasks the current user can access

Responses

  • status (number)
  • tasks (objects)

GET /api/tasks/ID

Retrieve a specific task

Request Parameters

  • ID (string)

Responses

  • status (number)
  • task (object)

DELETE /api/tasks/ID

Delete a specific task. The current user must NOT have a children account.

Request Parameters

  • ID (string)

Responses

  • status (number)

PUT /api/tasks/ID/select

Select the task with the current user

Request Parameters

  • ID (string)

Responses

  • status (number)

PUT /api/tasks/ID/unselect

Unselect the task, if already selected by the current user

Request Parameters

  • ID (string)

Responses

  • status (number)

GET /api/users

Get all users in all groups the user have

Responses

  • status (number)
  • users (objects)

GET /api/users/ID/tasks

Get all tasks selected by a user

Request Parameters

  • ID (string)

Responses

  • status (number)
  • tasks (objects)

GET /api/groups

Get all groups

Responses

  • status (number)
  • groups (objects)

GET /api/groups/ID/users

Get all users of this group

Request Parameters

  • ID (string)

Responses

  • status (number)
  • users (objects)

POST /api/groups/ID/users

Add a new user in this group

Request Parameters

  • ID (string)

Request Body

  • email (string)
  • password (string)
  • firstname (number)

Responses

  • status (number)

GET /api/groups/ID/tasks

Get all tasks of this group

Request Parameters

  • ID (string)

Responses

  • status (number)
  • tasks (objects)

POST /api/groups/ID/tasks

Add a new task in this group

Request Parameters

  • ID (string)

Request Body

  • name (string)
  • description (string)
  • reward (number)

Responses

  • status (number)
  • tasks (objects)

API Endpoint remaining

DELETE /api/users/ID

PUT /tasks/ID/complete

PUT /tasks/ID/validate

tasks-api's People

Contributors

birkoss avatar

Watchers

James Cloos 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.