Support non-collection routes in ApiApplication

Currently, we assume all routes are either collection routes or the `/health/` route.
Why would we have empty path fragments here? Is it something we should reject?