library

command module
v0.0.0-...-5f4434f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

Installation

go install github.com/boleslaw-intel/library@latest

Run http server on 8087 port

export PORT=8087
~/go/bin/library

Run client

Get all books - GET

curl localhost:8087/books -i

Get book by title and author - POST

curl http://localhost:8087/books --include --header "Content-Type: application/json" --request "POST" --data '{"title": "Tomek w krainie kangurów","author": "Alfred Szklarski"}'

Get book by ID - GET

curl localhost:8087/books/01GR40CWQ2WFQCGTZAPHZFW03N -i

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL