User Tools

Site Tools


rest_api_customers

This is an old revision of the document!


View all customers in XML format

  http://localhost:3000/*databasename*/customers.xml?token=*XXX*
  

View all customers in JSON format

  http//localhost:3000/*databasename*/customers.json?token=*XXX*
  

View single customer in XML format

  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.1480080150.txt.gz · Last modified: 2016/11/25 13:22 by sweitmann