linuxserver / budge

GNU General Public License v3.0
619 stars 18 forks source link

Feature Idea: Adding REST API Support #3

Closed iotemylabs closed 2 years ago

iotemylabs commented 2 years ago

Adding a REST API by utilizing the Envelopes as Objects, and endpoints to import CSVs, Export CSVs, POST Transactions, and whatnot.

This could also be useful, for maybe down the road, extending it to utilize the Plaid API Like this for Firefly III:

https://gitlab.com/GeorgeHahn/firefly-plaid-connector

alex-phillips commented 2 years ago

@iotemylabs Great news! There is already a rest API supported as well as swagger documentation for it. You can access the swagger docs via http://IP_ADDRESS/api/docs/.

When you use the login endpoint, it will return a token item. You can include this token value either in a cookie value named jwt OR the authorization header.

iotemylabs commented 2 years ago

The Swagger API Docs lead me to a blank page