Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If an identifier has already been generated by an application, it can specify the identifier when creating new objects and datastreams using the PUT method in the REST API:

Code Block
PUT /rest/abc123

...

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

Code Block
POST /rest

Response:

...

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, a new an identifier will be created using the external PID minter.  See Configuring an External PID Minter.

...

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 improving or extending extending (or improving) HttpPidMinter.java to provide the needed functionality.  Otherwise, you can create a new implementation of meet your needs.  Implementing the PidMinter interface is another option.