https://github.com/trendev/redis-poc
https://github.com/trendev/redis-poc
api go golang redis-client rest-api
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trendev/redis-poc
- Owner: trendev
- License: mit
- Created: 2022-09-10T11:58:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-10T12:14:42.000Z (over 3 years ago)
- Last Synced: 2025-01-14T06:31:17.623Z (over 1 year ago)
- Topics: api, go, golang, redis-client, rest-api
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redis-poc
`docker-compose` will start:
- a redis server with [RedisInsight](https://redis.com/redis-enterprise/redis-insight/)
- a micro-service build with golang for basic CRUD purposes (Rest API)
## :rocket: Use Rest API
### Save
```
curl -s -vvv -X POST "http://localhost:8080/jsie" -H 'content-type: application/json' -d '{ "value": "hello trendev" }' | jq
```
### Find
```
curl -s -vvv "http://localhost:8080/jsie" -H 'content-type: application/json' | jq
```