Nikey646 / VndbSharp

A C# Vndb API Library. #OriginalNamingScheme
MIT License
18 stars 4 forks source link

HTTPS Api #83

Open micah686 opened 2 years ago

micah686 commented 2 years ago

Yorhel has announced a new HTTPS based API (https://api.vndb.org/kana). This should be a better method of interacting with VNDB, since it works over HTTPS, which should reduce security issues (Like SecureString on non-Windows),

Nikey646 commented 2 years ago

Sorry for the delayed response, was on holidays.

Due to the fact that the old API won't be going away for the foreseeable future,

This version of the API is intended to replace the old TCP-based API, although the old API will likely remain available for the forseeable future.

This would most likely be an addition on top of the existing infrastructure.

Running through implementation issues and just dumping initial thoughts

The design of the API, in my opinion, shows a clear case of "Not invented here" and rather than modifying the back end to make an existing system work, has pushed the burden onto the end users. This is shown in the obtuse filter syntax that apparently has 3 data structures (A "compact" string, the json, and a third intermediatory form), the GraphQL style field selection without just rolling a GraphQL api which would probably allow the implementation of the filters without the complex data structures.

Honestly, after a quick glance and taking into consideration that I do not use this library anymore I doubt I will personally implement this unless I have another use for the VNDB api and the TCP one has been taken down. I'm happy to help direct integration of the HTTPS api into this library, or help discuss any issues with creating a new library focused on the HTTPS api.