As well as ID, we'll do some fuzzy matching on the URLs as well, so
GET /api/vehicle/t-65-x-wing
and
GET /api/planets/mustafar
will also work
GET /api/vehicle/t-65-x-wing
and
GET /api/planets/mustafar
will also work
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?
and it will have better fuzzy matching.