Question, is tyhe OPTIONS stuff just for the Swagger doc? #244
Unanswered
VictorioBerra
asked this question in
Q&A
Replies: 1 comment
-
It's not for Swagger. It's to tell clients what HTTP methods are supported for a given resource. It's not strictly required to do it but it's a nice optional extra. REST... Yes, it's built into MVC and you can create action methods for OPTIONS just like GET and PUT etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/Dotnet-Boxed/Templates/blob/master/Source/Content/ApiTemplate/Controllers/CarsController.cs#L24-L64
I assume this is built into MVC? Does it work with any route?
Beta Was this translation helpful? Give feedback.
All reactions