Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evgeniy-dammer/simpleapi
Simple Api in Golang
https://github.com/evgeniy-dammer/simpleapi
api fiber go golang gorm postgresql simple simple-api viper
Last synced: 12 days ago
JSON representation
Simple Api in Golang
- Host: GitHub
- URL: https://github.com/evgeniy-dammer/simpleapi
- Owner: evgeniy-dammer
- Created: 2022-04-18T08:20:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T09:19:33.000Z (over 2 years ago)
- Last Synced: 2024-06-20T00:40:09.634Z (5 months ago)
- Topics: api, fiber, go, golang, gorm, postgresql, simple, simple-api, viper
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple API in Golang
## Dependencies
The following dependencies have been used:
```
github.com/spf13/viper
github.com/gofiber/fiber/v2
gorm.io/gorm
gorm.io/driver/postgres
```## Application starting
Docker must be installed on your PC. Clone this repository and run:
```
docker-compose up
```## Endpoints
The following endpoints have been created:| Method | Route | Body |
| ------ | ------------- | ---------------------------------------------- |
| GET | /users | |
| GET | /users/:id | |
| POST | /users | `{"name": "John", "phone": "123456789", "email": "[email protected]" }`|
| DELETE | /users/:id | |
| PUT | /users/:id | `{"name": "John", "phone": "123456789", "email": "[email protected]" }`|