Best method to split openapi into multiple files #102
-
Hey there, In actix I could define all my functions and structs in their own modules and call If I understand correctly in poem every endpoint definition needs to be in the same file in the same impl block. Of cause I could treat every function as a wrapper, so for example
but that is quite a handfull to maintain too. Is there maybe a way to glue multiple API-definitions into one? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
use the |
Beta Was this translation helpful? Give feedback.
-
Thank you! I seem to be absolutely blind today. |
Beta Was this translation helpful? Give feedback.
-
The answer is outdated, nowadays |
Beta Was this translation helpful? Give feedback.
use the
combine
method to merge multiple OpenAPIs into one.poem/examples/openapi/combined-apis/src/main.rs
Line 41 in da103be