api_flat_arch

command
v0.0.0-...-926ba8e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

README

Inventory App using flat architecture

https://dev-state.com/posts/http_services/

Endpoint List Items:
curl http://localhost:5000 | json_pp
Endpoint Add Item:
curl --header "Content-Type: application/json" --request POST --data "@add_item.json" http://localhost:5000/add
Endpoint Change Open Status for Item:
curl -sS 'http://localhost:5000/open?id=5&open=true'
Endpoint Delete Item:
curl http://localhost:5000/del?id=2

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