command
Version:
v0.7.2
Opens a new window with list of versions in this module.
Published: Aug 8, 2018
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.