Community:NDR/listMembers
From NSDLWiki
Contents[hide] |
listMembers
Lists the handles of all members of an NDR object. For a MetadataProvider object, this is the Metadata objects provided.
Request URL
- http://repository.nsdl.org/listMembers/[handle]
- where [handle] is an NDR handle for an Aggregator or MetadataProvider object.
- May be an HTTP GET or POST request.
Arguments
- (the handle is at the end of the requestURL)
Response Fields
- handle handles for the objects that are members of the query object. For an Aggregator object, these are the objects that have a "membersOf" relationship with the Aggregator object; for a MetadataProvider object, this is the Metadata objects that have a "metadataProvidedBy" relationship with the MetadataProvider object. For more information, see ObjectTypes.
- Note that the handles returned are not guaranteed to be in any particular order.
Response Example
- <?xml version="1.0" encoding="UTF-8"?>
- <NSDLDataRepository schemaVersion="1.00.000" xmlns="http://ns.nsdl.org/ndr/response_v1.00/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.nsdl.org/ndr/response_v1.00/ http://ns.nsdl.org/schemas/ndr/response_v1.00.xsd">
- <responseTime>2005-10-26T18:42:05Z</responseTime>
- <requestURL>http://repository.nsdl.org/listMembers/nsdl:2000</requestURL>
- <resultData>
- <handleList>
- <handle>2200/200605091009662T</handle>
- <handle>2200/200606061020143T</handle>
- <handle>2200/200512122322333T</handle>
- </handleList>
- <handleList>
- </resultData>
- </NSDLDataRepository>