I am insecure whether to use an combination of POST & PATCH or if it is better to only offer PUT requests for my use-case.
If I am creating the following resource:
POST /customer
firstname: John
lastname: Smith
email: j.smith@web.com
(response -> customer created with id '1')
Can a PATCH request be used afterwards to update one existing value (email in this case) and also add new fields and values (birthdate) to the resource?
PATCH /customer/1
firstname: John
lastname: Smith
email: johnny.smith@gmail.com
dateofbirth: 1970-01-01
dateofbirth would be already part of the swagger definition in this case.