Can I use the API to figure out that, for instance, the x-wing is /vehicles/1 and Mustafar is /planets/7? Otherwise, how would I know?
GET /api/vehicle/t-65-x-wing
and
GET /api/planets/mustafar
will also work
and it will have better fuzzy matching.
GET /resources/ships
[
{ 1 : "Tantive IV" },
]It will have this style of lookup.
My initial guess would've been dynamic programming (levenstein distance), but if this is API-wide, did you make a suffix tree?