rest_api_customers
REST API for CUSTOMER data
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 |
rest_api_customers.txt · Last modified: 2024/09/25 06:21 by 127.0.0.1