Skip to content

mrdiniz88/api-token-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-token-express

Building an API on nodejs with registration system, authentication, CRUD of projects and tasks.

API endpoints

POST 
{
  "username": "username",
  "password": "password"
}
https://mrdiniz-api-express-two.herokuapp.com/auth/register
POST 
{
  "username": "username",
  "password": "password"
}
https://mrdiniz-api-express-two.herokuapp.com/auth/authenticate
POST 
{
  "title": "Project title", 
  "description": "Project description", 
  "tasks":[
              {
                "title": "Task title", 
                "assignedTo": "User ID"
              }
          ]
}
Authorization: Bearer token
https://mrdiniz-api-express-two.herokuapp.com/projects/
GET 
Authorization: Bearer token
https://mrdiniz-api-express-two.herokuapp.com/projects/
GET 
Authorization: Bearer token
https://mrdiniz-api-express-two.herokuapp.com/projects/:projectId
GET 
Authorization: Bearer token
https://mrdiniz-api-express-two.herokuapp.com/projects/:projectId
PUT
{
  "title": "Title of the changed project", 
  "description": "Description of the changed project, 
  "tasks":[
              {
                "title": "Title of the changed task", 
                "assignedTo": "User ID"
              }
          ]
}
Authorization: Bearer token
https://mrdiniz-api-express-two.herokuapp.com/projects/:projectId
DELETE
Authorization: Bearer token
https://mrdiniz-api-express-two.herokuapp.com/projects/:projectId

About

Building an API on nodejs with registration system, authentication, CRUD of projects and tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published