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

Expand ▾ Collapse ▴

Documentation

The Go Gopher

There is no documentation for this package.

Source Files