JustZack / audit-congress

A website collecting & displaying information about the activities of congress.
0 stars 0 forks source link

Revise API to accept an `\API\Schema` that builds up the known routes #98

Closed JustZack closed 5 months ago

JustZack commented 5 months ago

So that the api library is completely decoupled from the idea of audit congress. It only needs to take in a schema to know what to do with routes.

Ideally this includes a new \API\Schema, \API\RouteGroupSchema, \API\RouteSchema, which can be built up from a JSON schema file and passed to an \API\Runner.

This way, the API code is entirely separated from audit congress, and simply needs to know the schema for how things work.