Working with media resourcesAdded by IBM | Edited by IBM on March 15, 2012 | Version 6 (Show original)
|Using the Atom Publishing Protocol, also known as AtomPub, you can upload and replace files in your blog.
Using the Atom Publishing Protocol, also known as AtomPub, you can upload and replace files in your blog.
Creating media resourcesParent topic: Using the publishing APIs
Extending the list of allowable file types for blogs
When you upload a file to a blog, the server creates a media resource entry to represent the file. To create a media resource, post the file to the blog using the HTTP POST
Retrieving a media resource
You can retrieve a copy of the file itself or you can retrieve the file's metadata. To retrieve a copy of the file, use the edit-media link found in each entry in the media resource link entries feed. To retrieve file metadata, use the edit link found in each entry in the blog's media link entries feed.
Updating media resources
To update a file uploaded to a blog, send an updated version of the file to the existing Media Resource's edit-media URI.
Deleting media resources
To delete a file uploaded to a blog, use the HTTP DELETE method.