blueimpact / kucipong

BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Add the POST /store/coupon and GET /store/coupon/create handlers. #82

Closed cdepillabout closed 7 years ago

cdepillabout commented 7 years ago

If you run the api, and then access http://localhost/store/coupon/create you will be able to create a new coupon.

This implements two of the handlers from #77.

@arowM Please review.

cdepillabout commented 7 years ago

@arowM

When I tried to create a coupon with validFrom on Chrome, the page show me an error bellow.

could not parse: `2016-12-14'

This has been fixed in commit ced7968.

Even if I do not specify validFrom and validUntil, the page show me an error bellow.

could not parse: `'

This has been fixed in commit 87b579c.

cdepillabout commented 7 years ago

I'll go ahead and merge this in.