REST service which transforms English words to gopher language using predefined rules
1. go
2. docker && docker-compose
3. make (for ease of use)
4. cURL (if you want to kick off with some requests)
(will default to 8080)
make run
go run ./cmd/main.go -port <PORT>
make run-container
make build-image
-
make test
-
make test-unit
-
make test-integration
make generate
curl -X POST localhost:<PORT>/v1/word \
-H 'Content-Type: application/json' \
-d '{"english_word":"apple"}'
curl -X POST localhost:<PORT>/v1/sentence \
-H 'Content-Type: application/json' \
-d '{"english_sentence":"Apples grow on trees."}'
curl GET localhost:<PORT>/v1/history