go-crud-example

command module
v0.0.0-...-c23aeb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 11 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL