G
G
grabbee2017-09-09 20:56:05
Virtualization
grabbee, 2017-09-09 20:56:05

How to PATCH to REST API on FOSRestBundle?

There is an entity in which several properties independent of each other. Logically, they need / can be updated at different times and by different people. For example _user_status and _rating_. How can I update them individually? Write two methods?

patchUserStatusAction()
patchUserRaitingAction()

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
neol, 2019-05-22
@sabiv

Memory is better to take https://www.regard.ru/catalog/tovar280344.htm or https://www.regard.ru/catalog/tovar201416.htm
For money, the difference is negligible, and Ryzen loves the memory frequency.
Well, personally, I would take a simpler stone: 2700 or even 2600/2600X. The difference in performance will be much less than the difference in price (which can be put on a larger SSD, for example). Of course, if you do not need to run a dozen virtual machines with CPU-bound tasks at the same time.

G
grabbee, 2017-09-10
@grabbee

JMS uses "default object constructor" while normal operation requires Doctrine Object Constructor . Need to add to services

jms_serializer.object_constructor:
    alias: jms_serializer.doctrine_object_constructor
    public: false

Then what will come in the json body will be updated - it needs to be converted by fos_rest.request_body , optionally deserializationContext

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question