RESTful server handling client POST with different formatted contents ? RRS feed

  • Question

  • Hello Web API experts:

    I have a question on web api server handling a client POST (Json formatted data):

    Suppose the server is expecting a pre-designed 10-parameter report in json format (param1=value1, param2=value2...), but the client is only reporting 9 and missing one parameter; will this fail the POST?  Or the server will simply collecting 9 fields with the missing parameter carries a value of  "null" or empty ("") ?

    Thanks in advance.


    Sunday, August 11, 2019 6:21 PM