| Version 5 (modified by Frans, 22 months ago) |
|---|
Short summary about OpenAPI
Documentation for OpenAPI:
- http://opensocial-resources.googlecode.com/svn/spec/1.1/Social-API-Server.xml#MediaItems-Service
- http://opensocial-resources.googlecode.com/svn/spec/1.1/Core-API-Server.xml#Content-Upload
- http://opensocial-resources.googlecode.com/svn/spec/1.1/Social-Data.xml#Group
- http://opensocial-resources.googlecode.com/svn/spec/1.1/Social-Data.xml#MediaItem
- http://opensocial-resources.googlecode.com/svn/spec/1.1/Core-Data.xml#User-Id
- http://opensocial-resources.googlecode.com/svn/spec/1.1/Core-API-Server.xml#Standard-Request-Parameters
Pre-requirements:
Openapi interface (like app1, app2, job1 etc. interfaces). More information about the openapi interface here:
Settings:
You can define on the configuration page (admin/mediamosa/config/global)
OpenAPI part a client application for OpenAPI REST calls, and the default
response type.
OpenAPI REST calls:
/openapi/search, method [GET] https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/browse/restcall /openapi-search/GET
Example call: [GET]
/openapi/search?category=C1SJV9banjbSOWT4SgvjxaN5&duration=29&format=asf&publisher=pub&contributor=cont&author=creator&until=2010-08-05&since=2010-07-01&query=dc&subject=sle&language=nl&location=coverageMore documentation: TS Open Webservices - versie 0.9.pdf
OpenUpload? REST calls:
/openapi/album/$album_id [POST] /openapi/album/$album_id/mediaitem [POST] /openapi/album/$album_id/mediaitem/$id [POST]
Creating mediaItem (mediafile):
/openapi/mediaItem/$items_user_id/$group_id/$album_id [POST]
Getting information from mediaItems (mediafiles):
/openapi/mediaItems [GET] /openapi/mediaItems/$items_user_id [GET] /openapi/mediaItems/$items_user_id/$group_id [GET] /openapi/mediaItems/$items_user_id/$group_id/$album_id [GET] /openapi/mediaItems/$items_user_id/$group_id/$album_id/$mediaitem_id [GET]
https://beheer.acceptatie.vpcore.snkn.nl/admin/mediamosa/browse/restcall?page=4
Example: [GET]
/openapi/mediaItems/@me/@self/i1fXjdbtelVOrK7qQS1mhvNg/NgkAxZYTPmMKLETbgf1gHuJR Where $item_user_id = @me (the current user), $group_id = @self, $album_id (asset_id) = i1fXjdbtelVOrK7qQS1mhvNg, $mediaitem_id (mediafile_id) = NgkAxZYTPmMKLETbgf1gHuJR.
