This is a project to help you track your bugs in your project.
Bughunter is using React.js for frontend and Express.js for backend. It's also using MySQL for the database and Sequelize as ORM.
Get all users
GET /user
[{
"firstName": "User",
"lastName": "User",
"email": "user@example.com",
"password": "password",
"role": "user"
},
{
"firstName": "User2",
"lastName": "User2",
"email": "user2@example.com",
"password": "password2",
"role": "tester"
}]
Get an user by email
GET /user/:email
[{
"firstName": "User",
"lastName": "User",
"email": "user@example.com",
"password": "password",
"role": "user"
}]
Create user
POST /user
[{
"message": "User added successfully."
}]
[{
"message": "Invalid user payload."
}]
Update user
PUT /user/:email
[{
"message": "User updated succesfully"
}]
Get all projects
GET /project
[{
"identifier": "1",
"name": "project",
"repoLink": "https://git.com/repo"
},
{
"identifier": "2",
"name": "project2",
"repoLink": "https://git.com/repo2"
}]
Get an project by id
GET /project/:id
[{
"identifier": "1",
"name": "project",
"repoLink": "https://git.com/repo"
}]
Create project
POST /project
[{
"message": "Project added successfully."
}]
[{
"message": "Invalid project payload."
}]
Update project
PUT /project/:id
[{
"message": "Project updated successfully."
}]
Delete project
DELETE /project/:id
[{
"message": "Project succesfully deleted"
}]
Get all bugs
GET /bug
[{
"identifier": "1",
"name": "Big bug",
"priority": "minor"
},
{
"identifier": "2",
"name": "Bigger bug",
"priority": "critical"
}]
Get an bug by id
GET /bug/:id
[{
"identifier": "2",
"name": "Bigger bug",
"priority": "critical"
}]
Create bug
POST /bug
[{
"message": "Bug added successfully."
}]
[{
"message": "Invalid bug payload."
}]
Update bug
PUT /bug
[{
"message": "Bug updated successfully."
}]
Delete bug
DELETE /bug/:id
[{
"message": "Bug succesfully deleted"
}]