Skip to content

remove not necessary content header requirement

Rustam Lotsmanenko (EPAM) requested to merge fix-get-query-endpoint into master

Description:

GET query/records endpoint requires Content-Type header in the request.

curl --location 'https://community.gcp.gnrg-osdu.projects.epam.com/api/storage/v2/query/records?kind=osdu%3Awks%3Amaster-data--Well%3A1.0.0' \
--header 'data-partition-id: osdu' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 

If a header is not provided Storage responds with a 415 Unsupported Media Type code.
We need to remove this requirement since this endpoint doesn't accept request body, and shouldn't specify content-type.

How to test:

GET query/records works without Content-Type header.

curl --location 'https://community.gcp.gnrg-osdu.projects.epam.com/api/storage/v2/query/records?kind=osdu%3Awks%3Amaster-data--Well%3A1.0.0' \
--header 'data-partition-id: osdu' \
--header 'Authorization: Bearer 

Changes include:

  • Bugfix (a non-breaking change that solves an issue).

Changes in:

  • Common code
Edited by Rustam Lotsmanenko (EPAM)

Merge request reports

Loading