Skip to content

Start a REST API based on a SAF-T (Portuguese) XML file to easily query its data.

Notifications You must be signed in to change notification settings

antonioalmeida/saft-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saft-api

Start a REST API based on a SAF-T (Portuguese) XML file to easily query its data.

Remarks

Using the tool

# install dependencies
yarn

# Build the src
yarn build

# parse SAFT-T file - checks if valid
#yarn parse -s <file>
yarn parse -s demo-files/SAFT_DEMO_01-01-2018_31-12-2018.xml

# run the server 
yarn serve

Endpoints

Endpoint Description
/Header Company information
/GeneralLedgerEntries Transaction information
/GeneralLedgerAccounts Accounts information
/Customer List of customers
/Supplier List of suppliers
/Product List of products
/TaxTableEntry Tax deduction categories
/SalesInvoicesInfo Aggregated information for invoices
/SalesInvoices List of invoices
/StockMovementsInfo Aggregated informatino for stock movements
/StockMovements List of stock movements

Note: created as a helper tool for a university project, not meant for productions apps.

Contributors

Thanks to

About

Start a REST API based on a SAF-T (Portuguese) XML file to easily query its data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published