goclean

command module
Version: v0.0.0-...-6d92e63 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 5 Imported by: 0

README

Go Clean Architechture

Build Status Codecov Go Report Card

ภาพจาก blog.cleancoder.com
Swagger Generate
$ make swaggen
  • http://localhost:1323/swagger/index.html
REST API
$ make run
ADD
  • Request
POST http://localhost:1323/api/v1/promotion

Body

{
    "id": 1,
    "code": "sd-promo",
    "name": "Sunday promotion",
    "priority": 4,
    "exclusive": false,
    "used": 0,
    "couponBased": false,
    "rules": [],
    "actions": [],
    "createdAt": "2017-02-28T12:05:12+0100",
    "updatedAt": "2017-02-28T12:05:13+0100",
    "channels": [],
    "_links": {
        "self": {
            "href": "\/api\/v1\/promotions\/sd-promo"
        }
    }
}
GET ALL
  • Request
GET http://localhost:1323/api/v1/promotion

GET BY ID
  • Request
GET http://localhost:1323/api/v1/promotion/1

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

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