...
Wiki Markup |
---|
authz: Method: GET Uri: baseuri/authz/function/\[function name\]/qualifier/\[qualifier id\] eg: [https://thalia.mit.edu/thaliaime/authz/function/admin/qualifier/thalia:06AB49A3-3DDE-B92C-056D-F87533A2600C] Description: retrieves if the user has the authorization to do function X with the qualifier Y. Function names are ADMIN, READER, and WRITER. Sample output: <status result="true" /> Method: DELETE Uri: baseuri/authz/\[authz id\] Description: deletes the authorization identified by the authorization id. A status error will return if the authz id is not present, or if the user is not authorized to delete the authorization, or if the authz does not exist. Sample output: <status result="true" /> |
...
Wiki Markup |
---|
item: Method: GET Uri: baseuri/item/\[item id\] Description: Retrieve information on the item identified by the item id. Sample output: <item> <library-id>thalia</library-id> <id>thalia:231ED3C8-205E-1A87-FA70-8040382C275B</id> <createDate>2007-01-11T17:58:43.343Z</createDate> <lastModifyDate>2007-02-05T15:25:08.496Z</lastModifyDate> <title>Nisu</title> <description /> <date>12/2006</date> <subject>dog \| bella</subject> <format>undefined</format> <rights>undefined</rights> <contributor>Deanna Aho</contributor> <source /> <contentModel>THALIA:IMAGE</contentModel> <state>A</state> <albumId>thalia:public</albumId> <thumbnail>http<thumbnail>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/THUMBNAIL<THUMBNAIL]</thumbnail> <medium>http<medium>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/MEDIUM<MEDIUM]</medium> <large>http<large>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/LARGE<LARGE]</large> <master>http<master>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/MASTER<MASTER]</master> </item> |
Wiki Markup |
---|
Method: PUT Uri: baseuri/item/\[item id\] Description: Modified the item identified by the item id. A status error is returned if the item id is not present, or if the id doesn't match what is in the xml text, or if the user is not authorized to modified the item. Sample input: <item> <library-id>thalia</library-id> <id>thalia:231ED3C8-205E-1A87-FA70-8040382C275B</id> <createDate>2007-01-11T17:58:43.343Z</createDate> <lastModifyDate>2007-02-05T15:25:08.496Z</lastModifyDate> <title>Nisu</title> <description>Nisu</description> <date>12/2006</date> <subject>dog</subject> <format>undefined</format> <rights>undefined</rights> <contributor>Deanna Aho</contributor> <source>personal photograph</source> <contentModel>THALIA:IMAGE</contentModel> <state>A</state> <albumId>thalia:public</albumId> <thumbnail>http<thumbnail>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/THUMBNAIL<THUMBNAIL]</thumbnail> <medium>http<medium>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/MEDIUM<MEDIUM]</medium> <large>http<large>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/LARGE<LARGE]</large> <master>http<master>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/MASTER<MASTER]</master> </item> Sample output: <status result="true"> </status> |
Wiki Markup |
---|
Method: POST Uri: baseuri/item or baseuri/item/\[item id\]/move/\[target id\] or baseuri/item/\[item id\]/copy/\[target id\] Description: Upload an item, or move an item to another album, or copy an item to another album. Sample input: <item> <albumId>thalia:public</albumId> <title>deer</title> <description>test item upload</description> </item> Sample output: <item> <library-id>library-id</library-id> <id>thalia:DFFE0FF2-7DA1-09CD-F21B-871DFA5CEF75</id> <title>deer</title> <description>test item upload</description> <contentModel>THALIA:IMAGE</contentModel> <albumId>thalia:public</albumId> <thumbnail>http<thumbnail>[http://thalia..mit.edu/thalia-store/1174273278732_P1000331_sm.jpg<jpg]</thumbnail> <medium>http<medium>[http://thalia.mit.edu/thalia-store/1174273278732_P1000331_sm.jpg<jpg]</medium> <large>http<large>[http://thalia.mit.edu/thalia-store/1174273278732_P1000331.JPG<JPG]</large> <master>http<master>[http://thalia.mit.edu/thalia-store/1174273278732_P1000331.JPG<JPG]</master> </item> |
Wiki Markup |
---|
Method: DELETE Uri: baseuri/item/\[item id\] Description: Delete the item identified by item id. A status error will return if item id is not present, or the item does not exist, or if the user does not have rights to delete the item. Sample output: <status result="true"> </status> |
...
Wiki Markup |
---|
items: Method: GET Uri: baseuri/items/album/\[album id\] or baseuri/items/tag/\[tag id\] or baseuril/items/search Description: Get all the items in the album identified by album id or get all the items with the tag identified by tag id, or search for items based on the search criteria. Sample output: <result_set> <library-list> <library-id>Thalia</library-id> </library-list> <query>dog</query> <item> <library-id>thalia</library-id> <id>thalia:231ED3C8-205E-1A87-FA70-8040382C275B</id> <createDate>2007-01-11T17:58:43.343Z</createDate> <lastModifyDate>2007-02-05T15:25:08.496Z</lastModifyDate> <title>Nisu</title> <description /> <date>12/2006</date> <subject>dog</subject> <format>undefined</format> <rights>undefined</rights> <contributor>Deanna Aho</contributor> <source /> <contentModel>THALIA:IMAGE</contentModel> <state>A</state> <albumId>thalia:public</albumId> <thumbnail>http<thumbnail>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/THUMBNAIL<THUMBNAIL]</thumbnail> <medium>http<medium>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/MEDIUM<MEDIUM]</medium> <large>http<large>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/LARGE<LARGE]</large> <master>http<master>[http://thalia.mit.edu:8086/fedora/get/thalia:231ED3C8-205E-1A87-FA70-8040382C275B/MASTER<MASTER]</master> </item> <count>1</count> </result_set> |
...
Wiki Markup |
---|
map: Method: GET Uri: baseuri/map/\[map id\] Description: retrieves information about the map identified by map id. A status error will be returned if map id is not present, the user is not authorized to view the map, or if the map id doesn't exist. Sample output: <DisplayMap> <library-id>thalia</library-id> <id>thalia:FEE71D5F-26F8-BCF8-925A-D718E81E13C3</id> <createDate>2007-03-18T03:28:30.805Z</createDate> <lastModifyDate>2007-03-18T03:28:30.805Z</lastModifyDate> <title>qing map</title> <description>qing's test map</description> <creator>dongq</creator> <contentModel>THALIA:MAP:COLLECTIONMAP</contentModel> <state>A</state> <map> <numperscreen>25</numperscreen> <defaultDisplay>thumbnail</defaultDisplay> <page> <item> <id>thalia:93E30ABD-4F35-0EA8-BA3C-87A9F1853ECB</id> <caption>Picture of Thistles</caption> <image>http<image>[http://thalia.mit.edu:8086/fedora/get/thalia:1506255F-D68A-455E-B727-32536CFA758D/THUMBNAIL<THUMBNAIL]</image> </item> <item> <id>thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE</id> <caption>Another flower</caption> <image>http<image>[http://thalia.mit.edu:8086/fedora/get/thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE/THUMBNAIL<THUMBNAIL]</image> </item> </page> </map> </DisplayMap> |
Method: POST
Uri: baseuri/map
Description: Creates a map. A status error will return if the user doesn't have authorization to create maps. After a map is created, an authorization will be created to give the user admin rights to the map. It will return the xml text for the newly created map.
Sample input:
<DisplayMap>
<title>qing map</title>
<description>qing's test map</description>
<contentModel>THALIA:MAP:COLLECTIONMAP</contentModel>
<map>
<numperscreen>25</numperscreen>
<defaultDisplay>thumbnail</defaultDisplay>
<page>
<item ordinal="1">
<id>thalia:93E30ABD-4F35-0EA8-BA3C-87A9F1853ECB</id>
<caption>Picture of Thistles</caption>
<image>http://thalia.mit.edu:8086/fedora/get/thalia:1506255F-D68A-455E-B727-32536CFA758D/THUMBNAIL</image>
</item>
<item ordinal="2">
<id>thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE</id>
<caption>Another flower</caption>
<image>http://thalia.mit.edu:8086/fedora/get/thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE/THUMBNAIL</image>
</item>
</page>
</map>
</DisplayMap>
Sample output:
<DisplayMap>
<library-id>thalia</library-id>
<id>thalia:FEE71D5F-26F8-BCF8-925A-D718E81E13C3</id>
<createDate>2007-03-18T03:28:30.805Z</createDate>
<lastModifyDate>2007-03-18T03:28:30.805Z</lastModifyDate>
<title>qing map</title>
<description>qing's test map</description>
<creator>dongq</creator>
<contentModel>THALIA:MAP:COLLECTIONMAP</contentModel>
<state>A</state>
<map>
<numperscreen>25</numperscreen>
<defaultDisplay>thumbnail</defaultDisplay>
<page>
<item>
<id>thalia:93E30ABD-4F35-0EA8-BA3C-87A9F1853ECB</id>
<caption>Picture of Thistles</caption>
<image>http://thalia.mit.edu:8086/fedora/get/thalia:1506255F-D68A-455E-B727-32536CFA758D/THUMBNAIL</image>
</item>
<item>
<id>thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE</id>
<caption>Another flower</caption>
<image>http://thalia.mit.edu:8086/fedora/get/thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE/THUMBNAIL</image>
</item>
</page>
</map>
</DisplayMap>
...
Wiki Markup |
---|
Method: PUT Uri: baseuri/map/\[map id\] Description: Modifies the map identified by map id. A status error will return if map id is not present, or if the user is not authorized to modify the map. Sample input: <DisplayMap> <library-id>thalia</library-id> <id>thalia:FEE71D5F-26F8-BCF8-925A-D718E81E13C3</id> <createDate>2007-03-18T03:28:30.805Z</createDate> <lastModifyDate>2007-03-18T03:28:30.805Z</lastModifyDate> <title>qing map modified</title> <description>qing's test map</description> <creator>dongq</creator> <contentModel>THALIA:MAP:COLLECTIONMAP</contentModel> <state>A</state> <map> <numperscreen>5</numperscreen> <defaultDisplay>thumbnail</defaultDisplay> <page> <item> <id>thalia:93E30ABD-4F35-0EA8-BA3C-87A9F1853ECB</id> <caption>Picture of Thistles</caption> <image>http<image>[http://thalia.mit.edu:8086/fedora/get/thalia:1506255F-D68A-455E-B727-32536CFA758D/THUMBNAIL<THUMBNAIL]</image> </item> <item> <id>thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE</id> <caption>girl with flower</caption> <image>http<image>[http://thalia.mit.edu:8086/fedora/get/thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE/THUMBNAIL<THUMBNAIL]</image> </item> </page> </map> </DisplayMap> Sample output: <status result="true" /> |
...
Wiki Markup |
---|
maps: Method: GET Uri: baseuri/maps/\[map type\] Description: get all the maps in the system with the specified type which the user is allowed to see. Map types are resultmap, collection, and slideshow. Sample output: <displaymap-list> <DisplayMap> <library-id>thalia</library-id> <id>thalia:FEE71D5F-26F8-BCF8-925A-D718E81E13C3</id> <createDate>2007-03-18T03:28:30.805Z</createDate> <lastModifyDate>2007-03-18T03:28:30.805Z</lastModifyDate> <title>qing map</title> <description>qing's test map</description> <creator>dongq</creator> <contentModel>THALIA:MAP:COLLECTIONMAP</contentModel> <state>A</state> <map> <numperscreen>25</numperscreen> <defaultDisplay>thumbnail</defaultDisplay> <page> <item> <id>thalia:93E30ABD-4F35-0EA8-BA3C-87A9F1853ECB</id> <caption>Picture of Thistles</caption> <image>http<image>[http://thalia.mit.edu:8086/fedora/get/thalia:1506255F-D68A-455E-B727-32536CFA758D/THUMBNAIL<THUMBNAIL]</image> </item> <item> <id>thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE</id> <caption>Another flower</caption> <image>http<image>[http://thalia.mit.edu:8086/fedora/get/thalia:3A6B1C3A-390C-02DD-1D9C-C810F88F79CE/THUMBNAIL<THUMBNAIL]</image> </item> </page> </map> </DisplayMap> </displaymap-list> |
...