Task #7583
MNPackage.getPackage requires resource map id to download entire package
100%
Description
The documentation for this service, located at https://jenkins-ucsb-1.dataone.org/job/API%20Documentation%20-%20trunk/ws/api-documentation/build/html//apis/MN_APIs.html#MNPackage.getPackage indicates that
the pid for any object belonging to the package can be specified, and the entire package will be downloaed. The attached script gives an example of when this is not the case. Specifying a science object
results in a Bagit file with just the science object; specifiying the metadata object results in a Bagit file with just the metadata object. However, when the resource map id is specified, the
entire package is downloaded.
History
#1 Updated by Jing Tao almost 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
I talked with Peter about this issue. He agrees that we can change the documentation stating that the pid should be a resource map object. If it is not resource map object, an InvalidRequest exception will be thrown.
#2 Updated by Jing Tao almost 9 years ago
- Status changed from In Progress to Closed
- % Done changed from 30 to 100
- translation missing: en.field_remaining_hours set to 0.0
I did the change on the code and also modified the documenation