mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
openapi for read method
This commit is contained in:
parent
d9b4b22af3
commit
7286054a2f
3 changed files with 92 additions and 44 deletions
|
@ -118,7 +118,7 @@ fn main()
|
|||
);
|
||||
|
||||
gotham::start(ADDR, build_router(chain, pipelines, |route| {
|
||||
route.with_openapi("Users Example", "0.0.1", ADDR, |mut route| {
|
||||
route.with_openapi("Users Example", "0.0.1", format!("http://{}", ADDR), |mut route| {
|
||||
route.resource::<Users, _>("users");
|
||||
route.get_openapi("openapi");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue