-
Notifications
You must be signed in to change notification settings - Fork 6
Api reference image versions
mtaylor edited this page Apr 11, 2013
·
4 revisions
curl -X POST --header "Accept: application/xml" --header \
"Content-Type: application/xml" http://localhost:3000/tim/image_versions --data \
"<image_version>
<base_image id='3'></base_image>
</image_version>
HTTP Status Code: 201
<image_version href='http://localhost:3000/tim/image_versions/5' id='5'>
<base_image href='http://localhost:3000/tim/base_images/1' id='1'></base_image>
<target_images>
</target_images>
</image_version>
curl --header "Accept: application/xml" http://localhost:3000/tim/image_versions/1
HTTP Status Code: 200
<image_version href='http://localhost:3000/tim/image_versions/1' id='1'>
<base_image href='http://localhost:3000/tim/base_images/1' id='1'></base_image>
<target_images>
</target_images>
</image_version>
curl --header "Accept: application/xml" http://localhost:3000/tim/image_versions
HTTP Status Code: 200
<image_versions>
<image_version href='http://localhost:3000/tim/image_versions/1' id='1'></image_version>
<image_version href='http://localhost:3000/tim/image_versions/2' id='2'></image_version>
<image_version href='http://localhost:3000/tim/image_versions/3' id='3'></image_version>
</image_versions>
curl -X PUT --header "Accept: application/xml" --header \
"Content-Type: application/xml" http://localhost:3000/tim/image_versions/1 --data \
"<image_version>
<base_image id='2'></base_image>
</image_version>"
HTTP Status Code: 200
<image_version href='http://localhost:3000/tim/image_versions/1' id='1'>
<base_image href='http://localhost:3000/tim/base_images/2' id='2'></base_image>
<target_images>
</target_images>
</image_version>
curl -X DELETE--header "Accept: application/xml" http://localhost:3000/tim/image_versions/1
HTTP Status Code: 204