Golang Article Sharing CRUD API Project
- GOLANG
1.14
- FIBER
- GORM
- POSTGRESQL
For Get All Articles GET localhost:3000/api/v1/articles
For Get Article By Id GET localhost:3000/api/v1/articles/{id}
For Add Article POST localhost:3000/api/v1/articles
{
"description":"",
"title":""
}
For Update Article PUT localhost:3000/api/v1/articles/update
{
"id":1,
"description":"",
"title":""
}
For Delete Article DELETE localhost:3000/api/v1/articles/{id}
For Comment Service
For Get All Comments GET localhost:3000/api/v1/comments
For Get Comment By Id GET localhost:3000/api/v1/comments/{id}
For Add Comment POST localhost:3000/api/v1/comments
{
"comment":"",
"articleId":""
}
For Update Comment PUT localhost:3000/api/v1/comments/update
For Delete Comment DELETE localhost:3000/api/v1/comments/{id}