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
rest_api_manual [2016/11/25 13:15] sweitmannrest_api_manual [2022/07/05 11:18] (current) sweitmann
Line 1: Line 1:
 ====SQL-Ledger REST API Documentation==== ====SQL-Ledger REST API Documentation====
  
-View all customers in XML format +    * https://ledger123.net/api/ 
-    http://localhost:3000/*databasename*/customers.xml+    [[REST API Testserver|How to install a REST API test server]] 
 +    [[REST API Replies|REST API replies]] 
 +    * [[REST API Customers|REST API for GL entry]] 
 +    * [[REST API Customers|REST API for CUSTOMER data]] 
 +    * [[REST API Items|REST API for ITEMS data]] 
 +    * [[REST API Sales Orders|REST API for SALES ORDER data]] 
 +    * [[REST API Sales Invoice|REST API for SALES INVOICE data]]
          
-View all customers in JSON format 
-    http//localhost:3000/*databasename*/customers.json 
-     
-View single customer in XML format 
-    http://localhost:3000/*databasename*/*customer_id*.xml 
- 
-View single customer in JSON format 
-    http://localhost:3000/*databasename*/*customer_id*.json 
-     
-Adding a customer with XML from command line 
-    curl -X POST -H "Content-Type: application/xml" -d @customer.xml http://localhost:3000/*databasename*/customers 
- 
-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     
- 
-Delete a customer with DELETE request 
-    curl -X DELETE http://localhost:3000/*databasename*/customers/*customer_id* 
- 
- 
- 
-* [[REST API Customers|SQL-Ledger REST API for CUSTOMER data]] 
rest_api_manual.1480079724.txt.gz · Last modified: 2016/11/25 13:15 by sweitmann