router

command
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: MIT Imports: 8 Imported by: 0

README

oas3 router example

Run the server:

go run main.go -spec ../petstore.yaml

Send requests:

curl -XPOST -i localhost:3000/v2/pet

curl -XGET  -i localhost:3000/v2/store/inventory

Now try a request that does not meet spec parameters requirements:

curl -XGET -i "localhost:3000/v2/user/login?username=johndoe"

# HTTP/1.1 400 Bad Request
# {"errors":[{"message":"param password is required","field":"password"}]}

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