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

https://github.com/matheusps/post-manager-api

Post Manager API using Go's Framework Gin
https://github.com/matheusps/post-manager-api

gin gin-gonic go golang rest-api

Last synced: 2 months ago
JSON representation

Post Manager API using Go's Framework Gin

Awesome Lists containing this project

README

          

# Post Manager API
Post manager API

### Tech
Dependencies of this project:

* [GORM] - Fantastic ORM library for Golang
* [Gin] - Web framework written in Go

##### Build
```sh
$ go build *.go
```

##### Run
```sh
$ go run *.go
```

### Requests
Making requests in terminal

##### POST
```sh
$ curl -i -X POST http://localhost:8080/posts/ -d '{"title" : "...", "description" : "...", "body": "..."}'
```

##### GET
```sh
$ curl -i -X GET http://localhost:8080/posts/
```

##### GET ONE
```sh
$ curl -i -X GET http://localhost:8080/posts/id
```

##### PUT
```sh
$ curl -i -X PUT http://localhost:8080/posts/ -d '{"title" : ".^.", "description" : ".^.", "body": ".^."}'
```

[//]: # (Reference links)
[matheus]:
[git-repo-url]:
[Gin]:
[GORM]: