I want to someday implement a REST API and evaluated some tRPC integrations to map the current endpoints into a full OpenAPI spec. Unfortunately, some of these projects died, were not updated to trpc v11 and the one that worked required lots of tedious work with strictly specifying input and output zod schemas. Unfortunately, this also led to things breaking and not validating properly, so I gave up at the time.
Now it seems that the tRPC team is working on their own solution which looks pretty promising and promises less work. With the clankers being now more reliable, it seems that the task is now doable.
Following on the discussion from #300, this issue pertains to implementing a small subset of the endpoints, namely:
expense.addOrEditExpense
expense.getGroupExpenses
expense.getExpenseDetails
group.getAllGroups
group.getGroupDetails
user.me
If you strongly require more, let me know in the comments.
I want to someday implement a REST API and evaluated some tRPC integrations to map the current endpoints into a full OpenAPI spec. Unfortunately, some of these projects died, were not updated to trpc v11 and the one that worked required lots of tedious work with strictly specifying
inputandoutputzod schemas. Unfortunately, this also led to things breaking and not validating properly, so I gave up at the time.Now it seems that the tRPC team is working on their own solution which looks pretty promising and promises less work. With the clankers being now more reliable, it seems that the task is now doable.
Following on the discussion from #300, this issue pertains to implementing a small subset of the endpoints, namely:
expense.addOrEditExpenseexpense.getGroupExpensesexpense.getExpenseDetailsgroup.getAllGroupsgroup.getGroupDetailsuser.meIf you strongly require more, let me know in the comments.