Designing endpoint for performing partial updates with PATCH
问题 Consider a big entity named entity . It exposes 100 different updates operations including add and remove properties, update properties, etc. What should be prefered between using a single URI and many cases handled by application server route: PATCH /entity/[id] {"type":"a","key1":"val1","key2":"val2"} or {"type":"b","key3":"val3","key4":"val4"} or ... ... and using many URIs, one case handled by each application server route: PATCH /entity/[id]/a {"key1":"val1","key2":"val2"} PATCH /entity/