GET | |
---|---|
View all customers in XML format | https://localhost:3000/{databasename}/customers.xml?token=123 |
View all customers in JSON format | https://localhost:3000/{databasename}/customers.json?token=123 |
View single customer in XML format | https://localhost:3000/{databasename}/{customer_id}.xml?token=123 |
View single customer in JSON format | https://localhost:3000/{databasename}/{customer_id}.json?token=123 |
UPDATE | |
Add or update customer with XML from command line | curl -X POST -H "Content-Type: application/xml" -d @customer.xml https://localhost:3000/{databasename}/customers?token=123 |
Add or update customer with JSON from command line | curl -X POST -H "Content-Type: application/xml" -d @customer.json https://localhost:3000/{databasename}/customers?token=123 |
DELETE | |
Delete customer from command line | curl -X DELETE -H "Content-Type: application/xml" -d @customer.xml https://localhost:3000/{databasename}/{customers_id}?token=123 |