ParentTree API for retreiving a parent tree for a set of concepts
docker-compose up -d
http://localhost:9105/swagger
curl -X GET --header 'Accept: application/vnd.ontotext.parenttree+json' --header 'X-Request-ID: 123123' 'http://localhost:9105/parenttree?conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn3c&conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn4c'
{"tree":{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn1c"},"children":[{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn2c"},"children":[{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn4c"},"children":null}]},{"treeNode":{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn3c"},"children":null}]},"nodes":[{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn1c","prefLabel":"Well drilling","altLabel":"well-drilling","prefLabelTree":"/Well drilling"},{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn2c","prefLabel":"Well planning","altLabel":"well-planning","prefLabelTree":"/Well drilling/Well planning"},{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn3c","prefLabel":"Well site preparation","altLabel":"well-site-preparation","prefLabelTree":"/Well drilling/Well site preparation"},{"id":"http://ontology.ontotext.com/resource/tsk9f4r0xn4c","prefLabel":"Wellbore design","altLabel":"well-bore-design","prefLabelTree":"/Well drilling/Well planning/Wellbore design"}]}```
### XML
curl -X GET --header 'Accept: application/vnd.ontotext.parenttree+xml' --header 'X-Request-ID: 123123' 'http://localhost:9105/parenttree?conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn3c&conceptId=http%3A%2F%2Fontology.ontotext.com%2Fresource%2Ftsk9f4r0xn4c'
#### Response
''' mvn clean verify -P integration-test '''
docker build .
docker images
docker login -e="." -u="ontotext+ontotext" -p="XXXX" quay.io
docker tag ${IMAGE} parent-tree
docker tag ${IMAGE} quay.io/ontotext/parent-tree
docker push quay.io/ontotext/parent-tree
docker run --name parent-tree -it parent-tree /bin/bash
docker run --name parent-tree -d parent-tree
docker ps -a
docker exec -i -t ${CONTAINER_ID} /bin/bash
Create a .env file with the correct environment settings
SOME_THING=XXX
docker-compose up
docker-compose up -d