Body Cannot Send Content-Type application/json
Hi all
how to enable content-type : application/json
this is our web application environment
with body request
we got result when our hit with postman like this
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"diagnostics": "<HSFHIRErr>InvalidContentType",
"details": {
"text": "The Content-Type 'application/json' is not supported."
}
}
]
}
what we have to do to make this request success, thanks for your help and time
Thanks,
Rizki Okta Alhadi
Product version: IRIS 2023.1
$ZV: IRIS for Windows (x86-64) 2023.1.1 (Build 380U)
For FHIR you have to use application/json+fhir
Thanks @Dmitry Maslennikov
For FHIR message you should use the Content-Type application/fhir+json (refer section 3.2.0.1.10 Content Types and encodings)
Thanks @Ashok Kumar