hello-go-openapi-apifirst

module
v0.0.0-...-a4ad6bd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT

README

hello-go-openapi-apifirst

Build

./build.sh

Run

# server
pets-server

# client
pets-client

curl

# add
curl -H 'content-type:application/json' -X POST --data-binary '{"name":"john"}' localhost:8080/pets

# list
curl localhost:8080/pets

# query
curl localhost:8080/pets/1000

# delete
curl -X DELETE localhost:8080/pets/1000

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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