Universalis icon indicating copy to clipboard operation
Universalis copied to clipboard

OpenSearch endpoints

Open karashiiro opened this issue 2 years ago • 5 comments

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.

karashiiro avatar Dec 01 '21 22:12 karashiiro

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.

karashiiro avatar Dec 01 '21 22:12 karashiiro

To keep things lightweight, this might be able to be migrated to a separate logical service written in Go or something.

karashiiro avatar Dec 01 '21 22:12 karashiiro

Or in Rust with askama.

karashiiro avatar Dec 01 '21 22:12 karashiiro

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

karashiiro avatar Dec 01 '21 23:12 karashiiro

I noticed that mogboard already has an OpenSearch metadata file in its public directory, I just need to expose that through nginx.

karashiiro avatar Jan 22 '22 22:01 karashiiro