-
Notifications
You must be signed in to change notification settings - Fork 3
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
Disable XML and HTML responses from current registry-api-service implementation #91
Comments
Update engineering details on this ticket:
|
The two URLs in the accept give me 404 errors (used my local registry-api-service with one of them but fails the same as pds.nasa.gov version):
|
Hi @al-niessner , I updated the url in the ticket description. sorry about that. |
Just to make sure we share the same understanding of the ticket, the request with curl already returns json format, it is the default from the server point of view. The issue is that the browser (google chorme), sets a default accept to application/html and the server believes the best fit is application/xml whereas we want to return application/json. Maybe for that case, we shoud just accept application/html and return json. That will be defined from this section of the code https://github.com/NASA-PDS/registry-api-service/blob/45798b880a7229e4923f85e2d25e4ee0c59bae1d/src/main/java/gov/nasa/pds/api/engineering/configuration/WebMVCConfig.java#L89 For the swagger ui, I have no idea how to change that but there might be a configuration that you will find. thanks, |
Is this a registry-api-service thing? When I do it locally (
|
Hi @al-niessner |
closed per NASA-PDS/registry-api-service#58 and NASA-PDS/pds-api-javalib@8bc11a7 |
Motivation
...so that I no longer allow responses from response formats that have not yet been sufficiently designed/implemented.
Additional Details
Acceptance Criteria
Given a deployed registry-api-service with data ingested
When I perform a query of the API from a browser (e.g. https://pds-gamma.jpl.nasa.gov/api/products)
Then I expect the response will be an error message indicating XML/HTML is not supported
Engineering Details
Note: If this is not possible, I would like us to disable the XML response format until NASA-PDS/registry-api#456 is implemented. Most of our users will use the swagger page for initial testing, and we need to limit how much visibility comes to that response format until it is in a mort robust state.
The text was updated successfully, but these errors were encountered: