I currently use controllers with the MediatR library. FastEndpoints looks good and I've just read through all the docs 🙂 And I have a couple of questions.
1) With the binding order 1 is JSON Body and 3 is Route Parameters.
In the example given in this page, it says Route Parameters is higher priority, but the sentence above the list says that it's in the exact specified order. Is the list of priorities actually numbered from lowest to highest?
2) In the "from json body" section on the same page, "Address" (in the request) maps to "UserAddress" (in the c# class). Is this just a typo or some magic? There's a "mismatch properties" section further down where [JsonPropertyName] is used to correct this - so I am guessing it's just a typo?
Hi there,
I currently use controllers with the MediatR library. FastEndpoints looks good and I've just read through all the docs 🙂 And I have a couple of questions.
Early in the docs I saw on this page: https://fast-endpoints.com/docs/model-binding
1) With the binding order 1 is JSON Body and 3 is Route Parameters. In the example given in this page, it says Route Parameters is higher priority, but the sentence above the list says that it's in the exact specified order. Is the list of priorities actually numbered from lowest to highest?
2) In the "from json body" section on the same page, "Address" (in the request) maps to "UserAddress" (in the c# class). Is this just a typo or some magic? There's a "mismatch properties" section further down where
[JsonPropertyName]
is used to correct this - so I am guessing it's just a typo?Thanks.