resonatecoop / api

The one Resonate API to rule them all

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenAPI isn't set up to properly interface with the API

simonv3 opened this issue · comments

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.

  1. go to http://localhost:4000/docs
  2. Click on the {id} route for users. Error pops up at top of screen.
  3. Enter a user uuid. Request fails and sends to http://localhost:4000/users/:id instead of http://localhost:4000/api/v3/users/:id.
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?