Skip to content

al-tr/go-crud-example

Repository files navigation

CRUD example in Go language

Build Status Go Report Card Codacy Badge Open Source Helpers Coverage Status

Endpoints:

Method Endpoint Description
GET /articles(/) Gets all articles that don't have isDeleted=true
GET /articles/all Gets all articles (priority over {id})
GET /articles/{id} Gets article by id
POST /articles(/) Creates an article from the request body, validates all the stuff before creation
PUT /articles/{id} Updates an article from the request body, validates all the stuff before update
DELETE /articles(/) Cleans the database from bad articles: marks them as isDeleted=true
DELETE /articles/{id} Marks article as isDeleted=true

Challenges

  • go report A+
  • code coverage 100%
  • makefile
  • advise if you have any ideas

Releases

No releases published

Packages

No packages published

Languages