Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter added to non-FHIR APIs #819

Open
danielelkington opened this issue Dec 10, 2024 · 0 comments
Open

Filter added to non-FHIR APIs #819

danielelkington opened this issue Dec 10, 2024 · 0 comments

Comments

@danielelkington
Copy link

Describe the bug
We are using Spark to add FHIR endpoints to an existing application - our existing APIs have prefix /api while the new FHIR apis will have the prefix /fhir. However calling services.AddFhir as recommended registers the UnsupportedMediaTypeFilter. As a result many of our existing non-FHIR APIs that receive Content-Type headers such as multipart/form-data suddenly fail.

Workaround is to rename all such APIs to include the phrase "binary" in their route.

To Reproduce

  1. Create a non-FHIR API that accepts multipart/form-data
  2. Call services.AddFhir to allow for FHIR APIs in the same Web API project
  3. Call the non-FHIR API with header Content-Type = multipart/form-data

Expected behavior
Adding FHIR to a project should not affect non-FHIR APIs

Spark version

  • Version: 2.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant