You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I tried to use PATCH with Swashbuckle and noticed that generated Curl code contains wrong Content-Type field in the header:
curl -X PATCH --header "Content-Type: application/json" --header "Accept: application/json" -d "{
"Operations": [
{
"value": "UPDATED COMMENTS",
"path": "/comments",
"op": "replace",
}
]
}" "http://170.28.8.137/accounts/X23456"
Shouldn't be "Content-Type: application/json-patch" instead of "Content-Type: application/json"?
Thanks.
The text was updated successfully, but these errors were encountered:
The "json-patch" media type is a specific JSON format for applying changes to a resource as an array of patch operations. It should be used in combination with the PATCH verb but the use of PATCH on it's own does NOT imply that media-type.
Hi there,
I tried to use PATCH with Swashbuckle and noticed that generated Curl code contains wrong Content-Type field in the header:
curl -X PATCH --header "Content-Type: application/json" --header "Accept: application/json" -d "{
"Operations": [
{
"value": "UPDATED COMMENTS",
"path": "/comments",
"op": "replace",
}
]
}" "http://170.28.8.137/accounts/X23456"
Shouldn't be "Content-Type: application/json-patch" instead of "Content-Type: application/json"?
Thanks.
The text was updated successfully, but these errors were encountered: