Public Repository

Last pushed: a year ago
Short Description
The container implements EPOS Web Api as a REST Service on Tomcat Web Server.
Full Description
  • Open your CLI docker terminal (e.g. by using Kitematic) or login to your dockerhub account (i.e. by using the command: docker login --username=<your username>).

  • Follow the instructions to download and run the docker rde79/eposdb (i.e. see https://hub.docker.com/r/rde79/eposdb)

  • Download the container by the command:

docker pull rde79/eposwebapi

  • Run the image by the command:

docker run -p 8080:8080 --name riapi -it rde79/eposwebapi:latest

In this way on the url http://192.168.99.100:8080 it will be available Tomcat Web Server.

In your docker you will find a container with name riapi.

Here you will find the eposWebApi REST Service. If the service was correctly deployed, it will list all 256 Research Infrastructures in a XML representation as follows

<ResearchInfrastructureList>
<ResearchInfrastructure>
<id>0h9w4aq8p6mc7nm2dkgfg0s1lxd9bp</id>
<name>EPPO_ITSAK - Downhole Accelerometric Network</name>
<type>Seismic Network</type>
<country>greece</country>
<institution>ITSAK</institution>
<website>www.itsak.gr</website>
<manager>Basil Margaris, Konstantia Makra, Manolis Rovithis</manager>
<manager_email>
margaris@itsak.gr, makra@itsak.gr, rovithis@itsak.gr
</manager_email>
<manager_phone>3,02E+11</manager_phone>
<manager_institution>ITSAK</manager_institution>
<contact_person>Konstantinos Makropoulos</contact_person>
<contact_person_email>kmacrop@geol.uoa.gr</contact_person_email>
<contact_person_phone>3,02E+11</contact_person_phone>
<contact_person_institution>NOA</contact_person_institution>
<legal_contact_person>Anna Taoukidou</legal_contact_person>
<legal_contact_person_email>anna.taoukidou@admin.noa.gr</legal_contact_person_email>
<legal_contact_person_phone>3,02E+11</legal_contact_person_phone>
<legal_contact_person_institution>NOA</legal_contact_person_institution>
<financial_contact_person>Ioanna Kolliakou</financial_contact_person>
<financial_contact_person_email>ioanna@admin.noa.gr</financial_contact_person_email>
<financial_contact_person_phone/>
<financial_contact_person_institution>NOA</financial_contact_person_institution>
<self>
/researchInfrastructures/0h9w4aq8p6mc7nm2dkgfg0s1lxd9bp
</self>
</ResearchInfrastructure>

<ResearchInfrastructure>
...
</ResearchInfrastructure>

...
</ResearchInfrastructureList>
  • Using the Web browser, you can make GET queries with filter as follows:

http://192.168.99.100:8080/eposWebApi/researchInfrastructures/?<field>=<value>

Let's recall the list of fields of a Research Infrastructure:

id
name
type
country
institution
website
manager
manager_email
manager_phone
manager_institution
contact_person
contact_person_email
contact_person_phone
contact_person_institution
legal_contact_person
legal_contact_person_email
legal_contact_person_phone
legal_contact_person_institution
financial_contact_person
financial_contact_person_email
financial_contact_person_phone
financial_contact_person_institution

For instance the service gets all Research Infrastructures in the Greece country by:

http://192.168.99.100:8080/eposWebApi/researchInfrastructures/?country=Greece

Of course you can implement a client to query the REST service also by using POST, PUT, DELETE

Docker Pull Command
Owner
rde79

Comments (0)