API
API reference
Every query and mutation of the app, with its input and its result, as OpenAPI.
API address: https://gestion-darlot.fr/trpc
A query is a GET, its input as JSON in the “input” parameter; a mutation is a POST, its input as a JSON body. Inputs and results are encoded by superjson: send { "json": … }, read result.data.json.
Every route acts as a signed-in user, through their session cookie: sign in to the app in this browser to try them here.
Every model has the same generic routes routers.<route>.<Model> (read, create, update, archive, moveToTrash…); the reference below shows them for one model: Expense