User Tools

Site Tools


rest_api_customers

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rest_api_customers [2016/11/28 15:35] sweitmannrest_api_customers [2016/11/30 08:31] sweitmann
Line 9: Line 9:
 View single customer in JSON format View single customer in JSON format
     http://localhost:3000/*databasename*/*customer_id*.json?token=123         http://localhost:3000/*databasename*/*customer_id*.json?token=123    
-Adding a customer with XML from command line+Adding or updating a customer with XML from command line
     curl -X POST -H "Content-Type: application/xml" -d @customer.xml http://localhost:3000/*databasename*/customers?token=123     curl -X POST -H "Content-Type: application/xml" -d @customer.xml http://localhost:3000/*databasename*/customers?token=123
-Adding a customer with JSON format from command line+Adding or updating 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=123     curl -X POST -H "Content-Type: application/json" -d @customer.xml http://localhost:3000/*databasename*/customers?token=123
 Delete a customer with DELETE request Delete a customer with DELETE request
rest_api_customers.txt · Last modified: 2016/12/08 08:54 by sweitmann