posted 11 years ago
I have a REST service that accepts JSON in the request body. The method is defined as follows:
In the body of the request is a list of JSON objects representing ShoppingListItem objects, and this works fine. However, I would expect it also to work if the request body is empty--that the items variable would simply be null. However I get a 500 error before it even reaches my service when I post a request with an empty body.
Is this behavior normal/expected?
Thanks!
Sam