August 2017
Intermediate to advanced
330 pages
7h 26m
English
We use Put to update a store or create a new store. The signature of Put is different from Post:

We have the ID and model in the signature of the controller class. The route has the ID, and the model is in the body of the request. You will notice that the Post has no ID. We ask the store manager to update our model; if we get back a created one from the store manager, then we publish this location of the new resource. Any other state, including OK, is returned as HttpStatusCodeResult.

I have done some refactoring to our store manager, as ...
Read now
Unlock full access