Skip to content

MET-DEV/golang-fiber-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Article Sharing CRUD API Project

TECHNOLOGIES

  • GOLANG 1.14
  • FIBER
  • GORM
  • POSTGRESQL

API's PATHS

For Article Service

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
Request Body:
{
    "description":"",
    "title":""
   
}
For Update Article PUT localhost:3000/api/v1/articles/update
Request Body:
{
    "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
Request Body:
{
    "comment":"",
    "articleId":""
   
}
For Update Comment PUT localhost:3000/api/v1/comments/update
Request Body:
{
    "id":1,
    "comment":""
}
For Delete Comment DELETE localhost:3000/api/v1/comments/{id}

Releases

No releases published

Packages

No packages published

Languages