How to use the Security Addon #786
Replies: 1 comment
-
Add to each path separatelyutoipa/examples/todo-actix/src/main.rs Lines 50 to 58 in 67f04b3 In the above code at the line 54 utoipa/examples/todo-actix/src/main.rs Line 54 in 67f04b3 Must match to the api_key value on a #[utoipa::path(..)] utoipa/examples/todo-actix/src/todo.rs Lines 139 to 155 in 67f04b3 Add to whole API via OpenApi
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I added the
SecurityAddon
trait but I still don't have to add an API key. How can I enforce it for every endpoint?I used the
todo-actix
example to implement the Swagger UI.Beta Was this translation helpful? Give feedback.
All reactions