Informasjonsforvaltning / dataservice-catalog

A back end service for creating api catalogues and api descritptions. Exposes a dcat-ap-no dataservices endpoint.
Apache License 2.0
1 stars 1 forks source link

dataservice-catalog

Backend for the data service registration.

Requirements

Run tests

Run tests with maven:

mvn verify

Run locally

Start the application with docker-compose and contact it with maven.

docker-compose up -d

curl http://localhost:8080/ping
curl http://localhost:8080/ready

It is also possible to start the application with maven, this requires mongodb & rabbitmq from docker-compose to be running.

mvn spring-boot:run -Dspring-boot.run.profiles=develop

Then in another terminal e.g.

curl http://localhost:9080/ping
curl http://localhost:9080/ready

Datastore

To inspect local MongoDB:

% docker-compose exec mongodb mongo
% use admin
% db.auth("admin","admin")
% use dataservice-catalog
% db.dataservices.find()