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:
Internal PID Minter
To have identifiers automatically generated using the internal PID minter, an application can use the POST method:
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.