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

https://github.com/jonoman55/go-server

GO Server with CRUD routes
https://github.com/jonoman55/go-server

gin-gonic go godotenv golang gorm pgx postgres

Last synced: about 2 months ago
JSON representation

GO Server with CRUD routes

Awesome Lists containing this project

README

          

# GO Server

## About the project

This is a simple GO Server with HTTP CRUD routes.

### Commands

Install packages:

`go get`

Start command:

`go run main.go`

### API Routes

| Method | Endpoint | Description |
| ------ | ------ | ------ |
| GET | /posts | Get All Posts |
| POST | /posts | Create Post |
| PUT | /posts/:id | Update Post |
| GET | /posts/:id | Get Post By ID |
| DELETE | /posts/:id | Delete Post |

## License

MIT