Redirects within Poem OpenAPI #225
Answered
by
sunli829
ChillFish8
asked this question in
Q&A
-
Hello again 👋 Im aware we have |
Beta Was this translation helpful? Give feedback.
Answered by
sunli829
Mar 8, 2022
Replies: 1 comment 1 reply
-
You can define a #[derive(ApiResponse)]
enum MyResponse {
#[oai(status = "301")]
Redirect(#[oai(header = "Location")] String)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ChillFish8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can define a
301
response with theApiResponse
macro. 🙂