User Tools

Site Tools


rest_api_manual

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rest_api_manual [2016/11/25 13:19] sweitmannrest_api_manual [2022/06/17 09:25] sweitmann
Line 1: Line 1:
 ====SQL-Ledger REST API Documentation==== ====SQL-Ledger REST API Documentation====
  
-View all customers in XML format +    [[REST API Testserver|How to install a REST API test server]] 
-    http://localhost:3000/*databasename*/customers.xml?token=*XXX+    * [[REST API Replies|REST API replies]] 
-     +    * [[REST API Customers|REST API for GL entry]] 
-View all customers in JSON format +    * [[REST API Customers|REST API for CUSTOMER data]] 
-    http//localhost:3000/*databasename*/customers.json?token=*XXX+    * [[REST API Items|REST API for ITEMS data]] 
-     +    * [[REST API Sales Orders|REST API for SALES ORDER data]] 
-View single customer in XML format +    * [[REST API Sales Invoice|REST API for SALES INVOICE data]]
-    http://localhost:3000/*databasename*/*customer_id*.xml?token=*XXX* +
- +
-View single customer in JSON format +
-    http://localhost:3000/*databasename*/*customer_id*.json?token=*XXX+
-     +
-Adding a customer with XML from command line +
-    curl -X POST -H "Content-Type: application/xml" -d @customer.xml http://localhost:3000/*databasename*/customers?token=*XXX* +
- +
-Adding a customer with JSON format from command line +
-    curl -X POST -H "Content-Type: application/json" -d @customer.xml http://localhost:3000/*databasename*/customers?token=*XXX*     +
- +
-Delete a customer with DELETE request +
-    curl -X DELETE http://localhost:3000/*databasename*/customers/*customer_id*?token=*XXX* +
- +
- +
- +
-* [[REST API Customers|SQL-Ledger REST API for CUSTOMER data]]+
rest_api_manual.txt · Last modified: 2022/07/05 11:18 by sweitmann