Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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]" }`|