[
https://issues.apache.org/jira/browse/NIFI-15196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18037893#comment-18037893
]
Daniel Stieglitz edited comment on NIFI-15196 at 11/12/25 10:41 PM:
--------------------------------------------------------------------
[~exceptionfactory] [~_mark_]
There is always the option to use the UpdateAttribute processor to set the
mime.type attribute to be application/json (or application/xml) or for a more
dynamic way use the {{IdentifyMimeType}} processor to map
application/fhir+json to application/json and application/fhir+xml to
application/xml and then viewing it in the content viewer.
was (Author: JIRAUSER294662):
[~exceptionfactory] [~_mark_]
There is always the option to use the UpdateAttribute processor to set the
mime.type attribute to be application/json (or application/xml) or for a more
dynamic way use the {{IdentifyMimeType}} processor to map
application/fhir+json to application/json and application/fhir+xml to
application/xml and then viewing it in the content viewer.
> Content viewer should default to JSON when content's mime type is
> `application/fhir+json`
> -----------------------------------------------------------------------------------------
>
> Key: NIFI-15196
> URL: https://issues.apache.org/jira/browse/NIFI-15196
> Project: Apache NiFi
> Issue Type: Improvement
> Affects Versions: 2.5.0
> Environment: NiFi Version: 2.5.0
> Tag: rel/nifi-2.5.0
> Java Version: 21.0.3
> OS: Windows Server 2022
> Architecture: amd64
> Reporter: Mark Ward
> Priority: Minor
>
> When viewing JSON formatted content from a [link FHIR
> |https://www.hl7.org/fhir/overview.html] compliant endpoint via InvokeHttp,
> the returned content's MIME type is `application/fhir+json` and when viewed
> in the Content Viewer this defaults to the *Hex* view.
> It would save a few mouse-clicks of this kind of document defaulted to JSON
> when viewed in the content viwer?
> IANA also supports a Mime type of `application/fhir+xml`, suggest this should
> default to XML in the content viewer also.
> Additional Resources:
> * [Overview - FHIR v5.0.0|https://www.hl7.org/fhir/overview.html]
> * [Fast Healthcare Interoperability Resources -
> Wikipedia|https://en.wikipedia.org/wiki/Fast_Healthcare_Interoperability_Resources]
> *
> [iana.org/assignments/media-types/application/fhir+json|https://www.iana.org/assignments/media-types/application/fhir+json]
> *
> [iana.org/assignments/media-types/application/fhir+xml|https://www.iana.org/assignments/media-types/application/fhir+xml]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)