You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, imagine I have an API defined with the #[derive(Openapi)] macro invocation, and in that API I've got something at the path of /hello. If I wanted an alias for the same path at /hey is there a way to do that? I don't want the alias to appear in the generated spec. Should I just add a new route handler for /hey and add the thing to ignore it from the generated spec? Thanks!
The text was updated successfully, but these errors were encountered:
#[OpenApi]implMyApi{#[oai(path = "/hello", method = "get")]fnhello(){}#[oai(path = "/hello", method = "get", hidden)]// hidden attribute to hidden this api in the documentfnhey(){}}
Hey, imagine I have an API defined with the
#[derive(Openapi)]
macro invocation, and in that API I've got something at the path of/hello
. If I wanted an alias for the same path at/hey
is there a way to do that? I don't want the alias to appear in the generated spec. Should I just add a new route handler for/hey
and add the thing to ignore it from the generated spec? Thanks!The text was updated successfully, but these errors were encountered: