Hello everyone,
Suppose that I have the following service:
[PUT] /Patient/{patientId}/contact
OR
[PUT] /Patient/{patientId}/name
Do I handle this as an operation? If not, what is the proper manner?
Regrads
Hello everyone,
Suppose that I have the following service:
[PUT] /Patient/{patientId}/contact
OR
[PUT] /Patient/{patientId}/name
Do I handle this as an operation? If not, what is the proper manner?
Regrads
You could define a custom operation for POST /Patient/{patientId}/$contact, but be aware that you’d need to make custom arrangements for anyone to support it. Most typical is to do a snapshot update of the whole resource. Less commonly supported (but far more supported than a custom operation would be) is the PATCH operation.