Open rawdaGastan opened 11 months ago
It's a web-based bug tracking system.
models:
endpoints:
/user/signin a POST restful API to make the user sign in and return the token of the user
/user/signin
/user/signup a POST restful API to register the user and create his account
/user/signup
/user/signup/verify a POST restful API to verify the user email to complete the sign up
/user/signup/verify
/user/refresh_token a POST restful API to refresh the user token
/user/refresh_token
/user a GET restful API to get a user with its ID (needs authorization)
/user
authorization
/user a PUT restful API to update a user with its ID (needs authorization)
/project a POST restful API to create a new project (needs authorization)
/project
/project/{id} a GET restful API to get a project with its ID (needs authorization)
/project/{id}
/project/{id} a Delete restful API to delete a project with its ID (needs authorization)
/project/filters? a GET restful API to get all projects for a user (needs authorization)
/project/filters?
/member a POST restful API to add a new member (needs authorization)
/member
/member a PUT restful API to change the ownership of a member (needs authorization)
/component a POST restful API to create a new component (needs authorization)
/component
/component/{id} a GET restful API to get a component with its ID (needs authorization)
/component/{id}
/component/{id} a Delete restful API to delete a component with its ID (needs authorization)
/component/filters? a GET restful API to get all components for a project (needs authorization)
/component/filters?
/bug a POST restful API to create a new bug (needs authorization)
/bug
/bug/{id} a PUT restful API to update a bug with its ID (needs authorization)
/bug/{id}
/bug/{id} a GET restful API to get a bug with its ID (needs authorization)
/bug/{id} a Delete restful API to delete a bug with its ID (needs authorization)
/bug/filters? a GET restful API to get all bugs for a component (needs authorization)
/bug/filters?
/comment a POST restful API to create a new comment (needs authorization)
/comment
/comment/{id} a GET restful API to get a comment with its ID (needs authorization)
/comment/{id}
/comment/{id} a DELETE restful API to delete a comment with its ID (needs authorization)
/comment a GET restful API to get all comments for a bug (needs authorization)
DB:
gorm.io/gorm
validator:
gopkg.in/validator.v2
middle-wares:
configuration: (it's recommended to use JSON for your configs)
extra: make sure your backend server has
to be added
make sure to add a docker compose for your backend server and frontend
Description
It's a web-based bug tracking system.
Requirements
Backend
models:
endpoints:
/user/signin
a POST restful API to make the user sign in and return the token of the user/user/signup
a POST restful API to register the user and create his account/user/signup/verify
a POST restful API to verify the user email to complete the sign up/user/refresh_token
a POST restful API to refresh the user token/user
a GET restful API to get a user with its ID (needsauthorization
)/user
a PUT restful API to update a user with its ID (needsauthorization
)/project
a POST restful API to create a new project (needsauthorization
)/project/{id}
a GET restful API to get a project with its ID (needsauthorization
)/project/{id}
a Delete restful API to delete a project with its ID (needsauthorization
)/project/filters?
a GET restful API to get all projects for a user (needsauthorization
)/member
a POST restful API to add a new member (needsauthorization
)/member
a PUT restful API to change the ownership of a member (needsauthorization
)/component
a POST restful API to create a new component (needsauthorization
)/component/{id}
a GET restful API to get a component with its ID (needsauthorization
)/component/{id}
a Delete restful API to delete a component with its ID (needsauthorization
)/component/filters?
a GET restful API to get all components for a project (needsauthorization
)/bug
a POST restful API to create a new bug (needsauthorization
)/bug/{id}
a PUT restful API to update a bug with its ID (needsauthorization
)/bug/{id}
a GET restful API to get a bug with its ID (needsauthorization
)/bug/{id}
a Delete restful API to delete a bug with its ID (needsauthorization
)/bug/filters?
a GET restful API to get all bugs for a component (needsauthorization
)/comment
a POST restful API to create a new comment (needsauthorization
)/comment/{id}
a GET restful API to get a comment with its ID (needsauthorization
)/comment/{id}
a DELETE restful API to delete a comment with its ID (needsauthorization
)/comment
a GET restful API to get all comments for a bug (needsauthorization
)DB:
gorm.io/gorm
validator:
gopkg.in/validator.v2
middle-wares:
configuration: (it's recommended to use JSON for your configs)
extra: make sure your backend server has
Frontend
to be added
Docker compose
make sure to add a docker compose for your backend server and frontend
References