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
- Host: GitHub
- URL: https://github.com/matheusps/post-manager-api
- Owner: matheusps
- Created: 2017-11-27T15:22:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T05:12:35.000Z (over 8 years ago)
- Last Synced: 2024-10-05T11:41:38.364Z (over 1 year ago)
- Topics: gin, gin-gonic, go, golang, rest-api
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]: