Universalis
Universalis copied to clipboard
OpenSearch endpoints
Razor documentation MDN documentation Response format
We'll likely need different endpoints for each supported language. Additionally, since the item name XIVAPI query will occur on my server, we'll need to get an API key to avoid being rate-limited. Alternatively, we can try to use some other item name query API.
We might be able to quietly hijack https://www.garlandtools.org/api/search.php?text=wool&lang=en for the time being, but I think we'll eventually need to set up an actual lookup here.
To keep things lightweight, this might be able to be migrated to a separate logical service written in Go or something.
Or in Rust with askama.
Change of plans, just adding a bit to the frontend that prefills the search bar and does a search. Reference code: https://gist.github.com/cking/7c183b42eb1dc7a49a4d4d7048add89b
I noticed that mogboard already has an OpenSearch metadata file in its public directory, I just need to expose that through nginx.