This provides a simple PHP-based REST service with dummy responses to aid in Shipwire integration development before the actual APIs are ready.
<VirtualHost *:80>
DocumentRoot "/webroot/rest-shipwire"
ServerName rest.site
ServerAlias www.rest.site
</VirtualHost>
- /vendors
- /vendors/E{any_int}/packing-lists
- /vendors/E{any_int}/shipping-labels
- /warehouses
- /rate
- /orders
- /orders/E{any_int}/packing-lists
- /shipments
- /shipments/E{any_int}/packing-list
- /shipments/E{any_int}/shipping-label
- /shipments/E{any_int}/tracking-numbers
- /products
- /products/E{any_int}/stock
- /products/E{any_int}/stock-adjustments
http://www.rest.site/vendors/E1
{
"id": 10,
"externalId": 1,
"name": "Test Vendor 1",
"status": "active",
"description": "Vendor 1 description",
"contactName": "Vendor 1 name",
"contactEmail": "[email protected]",
"contactPhone": "123-456-7890",
"contactFax": "234-567-8901",
"address1": "123 Main St",
"address2": "Apt. 1",
"city": "Boulder",
"region": "CO",
"postalCode": "80304",
"country": "US"
}
PHP Rest server from https://github.com/marcj/php-rest-service