Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmadrosid/go-rest-api

Simple rest api with golang
https://github.com/ahmadrosid/go-rest-api

Last synced: 23 days ago
JSON representation

Simple rest api with golang

Awesome Lists containing this project

README

        

# Go Rest Api

Simple REST API in golang using jsonapi format.

## How to install?

Clone to your local machine :
```bash
git clone [email protected]:ahmadrosid/go-rest-api.git
cd go-rest-api
go test
```

Prepare database :
```bash
mysql -u root -psecret < data.sql
```

Compile and run :
```
go build
./go-rest-api
```

Test the endpoint on sample url [here](https://github.com/ahmadrosid/go-rest-api/blob/master/curls.md)