LOCKSS Metadata Service REST API
REST API of the LOCKSS Metadata Service
Version: 2.0.0
BasePath:/
BSD-3-Clause
https://opensource.org/licenses/BSD-3-Clause
Access
- HTTP Basic Authentication
[ Jump to Models ]
Table of Contents
Up
get /metadata/aus/{auid}
Get the metadata stored for an AU (getMetadataAusAuid)
Get the full metadata stored for an AU given the AU identifier or a pageful of the metadata defined by the continuation token and size
Path parameters
auid (required)
Path Parameter — The identifier of the AU for which the metadata is requested
Query parameters
limit (optional)
Query Parameter — The number of items per page default: 50
continuationToken (optional)
Query Parameter — The continuation token of the next page of metadata to be returned
Return type
Example data
Content-Type: application/json
{
"pageInfo" : {
"curLink" : "curLink",
"resultsPerPage" : 6,
"totalCount" : 0,
"continuationToken" : "continuationToken",
"nextLink" : "nextLink"
},
"items" : [ {
"scalarMap" : {
"key" : "scalarMap"
},
"listMap" : {
"key" : [ "listMap", "listMap" ]
},
"setMap" : {
"key" : [ "setMap", "setMap" ]
},
"mapMap" : {
"key" : {
"key" : "mapMap"
}
}
}, {
"scalarMap" : {
"key" : "scalarMap"
},
"listMap" : {
"key" : [ "listMap", "listMap" ]
},
"setMap" : {
"key" : [ "setMap", "setMap" ]
},
"mapMap" : {
"key" : {
"key" : "mapMap"
}
}
} ]
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The metadata of the specified AU
auMetadataPageInfo
400
Bad Request
401
Unauthorized
404
Not found
409
Conflict
500
Internal Server Error
Get the status of the service (getStatus)
Get the status of the service
Return type
Example data
Content-Type: application/json
{
"startupStatus" : "NONE",
"reason" : "reason",
"readyTime" : 0,
"apiVersion" : "apiVersion",
"ready" : true,
"componentName" : "componentName",
"componentVersion" : "componentVersion",
"serviceName" : "serviceName",
"lockssVersion" : "lockssVersion"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The status of the service
apiStatus
401
Unauthorized
500
Internal Server Error
Gets the URL for a DOI (getUrlsDoi)
Provides the URL for a DOI given the DOI
Query parameters
doi (required)
Query Parameter — The DOI for which the URL is requested
Return type
Example data
Content-Type: application/json
{
"urls" : [ "urls", "urls" ],
"params" : {
"key" : "params"
}
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The URL for the specified DOI
urlInfo
400
Bad Request
401
Unauthorized
500
Internal Server Error
Performs an OpenURL query (getUrlsOpenUrl)
Provides the URL that results from performing an OpenURL query. With query parameters inline
Query parameters
params (required)
Query Parameter — The OpenURL parameters
Return type
Example data
Content-Type: application/json
{
"urls" : [ "urls", "urls" ],
"params" : {
"key" : "params"
}
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
The data related to the performed OpenURL query
urlInfo
400
Bad Request
401
Unauthorized
500
Internal Server Error
[ Jump to Methods ]
Table of Contents
apiStatus
auMetadataPageInfo
itemMetadata
pageInfo
urlInfo
The status information of the service
apiVersion
componentName (optional)
String The name of the component
componentVersion (optional)
String The version of the component software
lockssVersion (optional)
String The version of the LOCKSS system
ready
Boolean The indication of whether the service is available
serviceName (optional)
String The name of the service
readyTime (optional)
Long The time the service last became ready. format: int64
reason (optional)
String The reason the service isn't ready.
startupStatus (optional)
String Enum indicating progress of plugin/AU processing at startup.
NONE
PLUGINS_CRAWLING
PLUGINS_COLLECTED
PLUGINS_LOADING
PLUGINS_LOADED
AUS_STARTING
AUS_STARTED
The display page of AU metadata
The metadata generated for a single item
scalarMap (optional)
setMap (optional)
listMap (optional)
mapMap (optional)
The information related to pagination of content
totalCount
Integer The total number of elements to be paginated format: int32
resultsPerPage
Integer The number of results per page format: int32
continuationToken
curLink
String The link to the current page
nextLink (optional)
String The link to the next page
The information related to a resulting list of URLs