Open Neo-Zhixing opened 1 week ago
Would it be possible to add a GraphQL and REST API to this website? The existing APIs are insufficient and seems painful to use.
Can you elaborate on this? Why do you think it's insufficent and what exactly is painful? That sounds very negative.
Also not all parts of the api are public, so you may not know about the whole picture.
@SaschaWillems Thank you for your response.
I would like to query the coverage of certain extensions and features. The API allowing me to do this seems to be https://github.com/SaschaWillems/vulkan.gpuinfo.org/blob/master/api/internal/extensions.php which returns something that looks like this:
The JSON contains pre-rendered HTML snippets, meaning that I will now have to parse those HTML snippets in order to obtain the information I need. This is generally considered suboptimal practice - you typically want to compose the HTML on the front end instead.
I understand that this is an internal API exclusively for the PHP website, but I have not found a different API where I can easily obtain this information unless I download all reports, put them into a database, and parse them on my own.
You have acknowledged the utility of a more advanced and flexible API in #16 where you said
I'm not happy with the limited search capabilities myself and that's something I want to improve
I plan on making this as flexible as possible from the programming's POV, so new search requirements can be easily added.
So my understanding is that the primary reason this hasn't been done is the engineering cost.
In #77 you have said that you will not expose a SQL interface to allow easy query of the website content. A solution powered by tools like Hasura would probably minimize the engineering cost all while maintaining the access and security restrictions you would like to put in place.
Generally, I'm not creating this issue to criticize the design of the existing APIs. I would like to understand if you will be open to using a third-party tool that makes it easy to expose the database in a secure manner, which seems to be a relatively common request from the website users.
Would it be possible to add a GraphQL and REST API to this website? The existing APIs are insufficient and seems painful to use.
This can be easily done using tools like Hasura
My use case is that I'm trying to add integration with gpuinfo.org on VulkanHub so that the user can directly see the extension and feature coverage info on the Vulkan refpages.
cc #77