-
Notifications
You must be signed in to change notification settings - Fork 63
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
Querying for inscriptions by >1 mime_type
fails due to incorrect enconding
#254
Comments
Here's an example from the tests: const response3 = await fastify.inject({ method: 'GET',
url: '/ordinals/v1/inscriptions?mime_type=image/png&mime_type=text/plain',
}); Note the repeated |
@diwakergupta: Oh! Thanks for catching that. I blindly copied the URL from the dev console (through Ordinals Explorer) and included that in the example I listed in the description. I didn't pay close attention to the multiple |
Correct, current API documentation states to use a comma to separate the values and the API tester implements this non functioning format. See the line "Example: image/png,image/jpeg" at https://docs.hiro.so/ordinals/list-of-inscriptions |
Aside from the OpenAPI spec and the related documentation issue, @nima1981 wonders (as a new feature request) whether the Ordinals API can support either of the following formats: a: "comma separated" values |
From Nima:
An example of a correctly encoded URL would be:
The API demo panel in the Docs is not correctly encoding the special chars in the query param. But it could also be due to how the OpenAPI spec is designed. Therefore, I am opening the issue in the Ordinals API so we can verify it here first.
The text was updated successfully, but these errors were encountered: