Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.02 KB

posts-api-mysql

Build Status codecov

API for blog posts using Golang and MySQL

Dependencies:

Using golang/dep to manager dependencies. See: https://github.com/golang/dep

Getting started

To create docker image: docker build -t posts-api-mysql . To start containers: docker-compose up -d

Endponts
Method URI
GET http://localhost:3000/resources/posts
POST http://localhost:3000/resources/posts
PUT http://localhost:3000/resources/posts/{number}
DELETE http://localhost:3000/resources/posts/{number}
GET-by-id http://localhost:3000/resources/posts/{number}
GET-pagination http://localhost:3000/resources/posts/?size={number}&page={number}