Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

Identifiers can be specified in REST API calls and generated either automatically using the internal PID minter or via an external REST service.

Specifying Identifiers in REST API Calls

If an identifier has already been generated by an application, you can specify it when creating resources using the PUT method:


Response:

 


Internal PID Minter

To have identifiers automatically generated using the internal PID minter, an application can use the POST method:


Response:


External PID Minter

Fedora 4 can also be configured to retrieve identifiers from an external HTTP minter service.  When a new object or datastream is created using the POST method, an identifier will be created using the external PID minter.  See Configuring an External PID Minter.

Custom PID Minters

To use a different identifier generation process, you can create a custom PID minter implementation, which can be configured in the same way as the external PID minter.  If your identifiers are generated from an HTTP service, then you should consider extending (or improving) HttpPidMinter.java to meet your needs.  Implementing UniqueValueSupplier.java is another option.

  • No labels