OpenAPI isn't set up to properly interface with the API
simonv3 opened this issue · 1 comments
simonv3 commented
While the docs load properly, when you open an endpoint, it pops up an error saying it can't find Error definitions, and requests don't go through properly.
- go to
http://localhost:4000/docs
- Click on the
{id}
route for users. Error pops up at top of screen. - Enter a user uuid. Request fails and sends to
http://localhost:4000/users/:id
instead ofhttp://localhost:4000/api/v3/users/:id
.
simonv3 commented
I wonder if one of the ways we're making our lives more complicated than they need to be here is that each controller set is treated as its own complete API. So /api/v3/trackgroups
is treated as a different api (from an OpenAPI / Swagger doc point of view) from /api/v3/plays
. Would we be able to simplify our codebase significantly if that wasn't the case?