OAI-PMH Spring Boot Starter will help you build an OAI-PMH Data provider with Spring Boot
- Spring Boot Starter: Easily integrate OAI-PMH capabilities into your Spring Boot applications.
- API Documentation: Comprehensive API documentation using Swagger and OpenAPI.
- Ready-to-Use Endpoints: Pre-configured OAI-PMH protocol endpoints for immediate use.
- Detailed Request Validation: Robust validation mechanisms to ensure the integrity of incoming requests.
- Java Classes with Jakarta XML Annotations: Provides annotated Java classes for MARC21 and Dublin Core metadata formats.
- Separation of Concerns: Facilitates the separation of protocol implementation from data processing, making it ideal for backend services or data pipelines.
<!-- Spring Starter for OAI-PMH Endpoints -->
<dependency>
<groupId>de.muenchen.oss.oai</groupId>
<artifactId>oai-pmh-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
<!-- OAI-PMH Java classes conforming to the XML Protocol Schema (is already part of de.muenchen.oss.oai.oai-pmh-spring-boot-starter) -->
<dependency>
<groupId>de.muenchen.oss.oai</groupId>
<artifactId>oai-pmh-schema</artifactId>
<version>2.0.0</version>
</dependency>
The Starter provides a functional RestEndpoint that will autowire a Bean of type RequestProcessor.
The RequestProcessor
interface needs to be implemented by at least one @Component
in your application.
The Endpoint of the Starter will pass down these OAI-PMH requests to your implementation:
- Identify
- GetRecord
- ListIdentifiers
- ListMetadataFormats
- ListRecords
- ListSets
An example implementation can be found here.
- 🥅 We offer a set of exceptions which get recognized by the starter that you can reuse
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please open an issue with the tag "enhancement", fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Open an issue with the tag "enhancement"
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
More about this in the CODE_OF_CONDUCT file.
Distributed under the MIT License. See LICENSE file for more information.
it@M - [email protected]