Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ztrzaska/golang-gin-rest-service
Golang REST API with gin library
https://github.com/ztrzaska/golang-gin-rest-service
gin gin-gonic golang rest rest-api
Last synced: 25 days ago
JSON representation
Golang REST API with gin library
- Host: GitHub
- URL: https://github.com/ztrzaska/golang-gin-rest-service
- Owner: ztrzaska
- Created: 2023-08-28T11:57:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-11T05:25:31.000Z (over 1 year ago)
- Last Synced: 2023-09-11T06:29:42.570Z (over 1 year ago)
- Topics: gin, gin-gonic, golang, rest, rest-api
- Language: HTML
- Homepage:
- Size: 3.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goolang gin REST API with go-swagger and mongo database
### Get started
This project demonstrates sample microservice, which use golang, gin REST API ang go-swagger.
### Swagger installation
```
git clone https://github.com/go-swagger/go-swagger
cd go-swagger
go install ./cmd/swagger
```### Swagger doc API generation
```
swagger generate spec -o ./cmd/api/swaggerui/swagger.json --scan-models
```### Mongo database
```
docker pull mongo
docker run -dp 27017:27017 mongo
```### Reference Documentation
For further reference, please consider the following sections:
* [Golang documentation](https://go.dev/doc/)
* [Gin library documentation](https://gin-gonic.com/)
* [Go-swagger](https://github.com/go-swagger/go-swagger/)