sjnyos / gah-golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Go 98.6%Language:Dockerfile 1.4%