# JPER OAI-PMH endpoint

This document describes how to interact with the JPER OAI-PMH endpoint to retrieve the metadata records of successfully
routed notifications.

You may also wish to read the [OAI-PMH documentation](http://www.openarchives.org/OAI/openarchivesprotocol.html).

This endpoint only supports oai_dc formatted metadata, and can only access notifications going back 3 months.

## All routed notifications

You can retrieve metadata records for all routed notifications by sending requests to

    https://pubsrouter.jisc.ac.uk/oai/all

For example:

    GET https://pubsrouter.jisc.ac.uk/oai/all?verb=ListRecords&from=2016-01-01&metadataPrefix=oai_dc
    
## Routed notifications for a specific repository

You can retrieve metadata records for all routed notifications for a specific repository by sending requests to

    https://pubsrouter.jisc.ac.uk/oai/repo/<repo id>

Where "repo_id" is the account id of the repository whose notifications to retrieve.

For example:

    GET https://pubsrouter.jisc.ac.uk/oai/repo/123456789?verb=ListRecords&from=2016-01-01&metadataPrefix=oai_dc


# JPER OAI-PMH endpoint

This document describes how to interact with the JPER OAI-PMH endpoint to retrieve the metadata records of successfully
routed notifications.

You may also wish to read the [OAI-PMH documentation](http://www.openarchives.org/OAI/openarchivesprotocol.html).

This endpoint only supports oai_dc formatted metadata, and can only access notifications going back 3 months.

## All routed notifications

You can retrieve metadata records for all routed notifications by sending requests to

    https://pubrouter.jisc.ac.uk/oai/all

For example:

    GET https://pubrouter.jisc.ac.uk/oai/all?verb=ListRecords&from=2016-01-01&metadataPrefix=oai_dc
    
## Routed notifications for a specific repository

You can retrieve metadata records for all routed notifications for a specific repository by sending requests to

    https://pubrouter.jisc.ac.uk/oai/repo/<repo id>

Where "repo_id" is the account id of the repository whose notifications to retrieve.

For example:

    GET https://pubsrouter.jisc.ac.uk/oai/repo/123456789?verb=ListRecords&from=2016-01-01&metadataPrefix=oai_dc


Fix URL to match live implementation.
Fix URL to match live implementation.