Questions on WEB API Object

Hi,

Need help on below. Could someone please help me?

I have few questions on Web API objects:

  1. Can I use query parameters in Post method? In what scenario?
  2. Where can we use Query Parameters as well as body in Post method?
  3. When I am trying to update one field model by passing body as

{"id":1,

"model":"Jaguar"},

 

It is updating all the fields and except id and model all other fields are updated with null.

How can I update only “model” field?

 

Thanks

Faisal

  Discussion posts and replies are publicly visible