Skip to content

Instantly share code, notes, and snippets.

@emodric
Created September 17, 2012 14:39
Show Gist options
  • Save emodric/3737780 to your computer and use it in GitHub Desktop.
Save emodric/3737780 to your computer and use it in GitHub Desktop.
load locations for content
www-data@void ~/rest/locations [master] $ ./loadLocationsForObject.sh
GET /content/objects/58/locations HTTP/1.1
Accept: application/vnd.ez.api.LocationList+xml
Accept-Encoding: identity, deflate, compress, gzip
Host: localhost:8042
User-Agent: HTTPie/0.2.8-alpha
X-Test-User: 14
HTTP/1.1 200 OK
Content-Length: 255
Content-Type: application/vnd.ez.api.LocationList+xml
Date: Mon, 17 Sep 2012 14:39:11 GMT
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.3
<?xml version="1.0" encoding="UTF-8"?>
<LocationList media-type="application/vnd.ez.api.LocationList+xml" href="/content/objects/58/locations">
<Location media-type="application/vnd.ez.api.Location+xml" href="/content/locations/1/2/60"/>
</LocationList>
www-data@void ~/rest/locations [master] $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment