FAIR Data Point (FDP) is a REST API for creating, storing, and serving FAIR metadata. This FDP implementation also presents a Web-based graphical user interface (GUI). The metadata contents are generated semi-automatically according to the FAIR Data Point software specification document.
More information about FDP, how to deploy it and use it can be found in the FDP Deployment Documentation.
- FAIR Data Point Client
- FAIR Data Point E2E Tests
- FAIR Data Point Documentation
- OpenRefine Metadata Extension
FAIR Data Point API comes with an embedded OpenAPI documentation using Swagger. The
details of API calls can be found there. It also allows trying out API calls directly. To access the FDP swagger
document please visit the following url via web
browser localhost:8080/swagger-ui.html (for local deployment)
or https://your.domain.tld/swagger-ui.html
for your deployment (
e.g. app.fairdatapoint.org/swagger-ui.html).
- Java (JDK 15)
- MongoDB (4.2)
- Maven (3.2.5 or higher)
- Docker (17.09.0-ce or higher) - for building Docker image only
To run the application, a MongoDB instance is required to be running. To configure the MongoDB with standard
connection (mongodb://localhost:27017/fdp
), simply instruct Spring Boot to use the development
profile. Then run:
$ mvn spring-boot:run -Dspring-boot.run.profiles=development
Alternatively, create an application.yml
file in the project root
and configure the mongodb address
, and then run:
$ mvn spring-boot:run
Run from the root of the project:
$ mvn test
Run from the root of the project:
$ mvn package
Run from the root of the project (requires building jar
file using mvn package
as shown above):
$ docker build -t fairdatapoint:local .
If you do not have Java and Maven locally, you can build the Docker image using Docker (instead of using locally
built jar
file):
$ docker build -f Dockefile.build -t fairdatapoint:local .
Most of the GET
requests are publicly accessible. In contrast, POST
, PUT
, DELETE
, and PATCH
requests are
mainly secured. We use JWT Tokens
and Bearer Token Authentication. The
token can be retrieved using /tokens
endpoint where you send username and password. For details, visit the OpenAPI
documentation.
Default users
- ADMIN:
- Username:
albert.einstein@example.com
- Password:
password
- Username:
- USER:
- Username:
nikola.tesla@example.com
- Password:
password
- Username:
We maintain a CHANGELOG, you should also take a look at our Contributing guidelines and Code of Conduct.
This project is licensed under the MIT License - see the LICENSE file for more details.