Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catcherwong/rest-api-sample
🍰 A simple sample that uses gin to build REST API.
https://github.com/catcherwong/rest-api-sample
gin gorm swagger
Last synced: about 1 month ago
JSON representation
🍰 A simple sample that uses gin to build REST API.
- Host: GitHub
- URL: https://github.com/catcherwong/rest-api-sample
- Owner: catcherwong
- License: mit
- Created: 2019-10-27T08:01:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-12T01:43:10.000Z (about 5 years ago)
- Last Synced: 2023-03-09T04:36:39.339Z (over 1 year ago)
- Topics: gin, gorm, swagger
- Language: Go
- Homepage:
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rest-api-sample
A simple sample that use gin to build rest api.
## Installation
```
git clone https://github.com/catcherwong/rest-api-sample.git
```## How to run
```
$ cd rest-api-sample$ docker build -t rest-api-sample:v1 .
$ docker run -p 9999:9999 rest-api-sample:v1
```Swagger doc
![](./media/swagger.png)
## Features
- Gin
- Gorm
- Swagger
- Redis
- SQLite
- yaml
- prometheus