Overview

The following examples in JavaScript, Java and PHP will assist you in utilizing the Europass REST API.

Rest Examples Javascript

Europass has developed a web-based tool (html/javascript) to demonstrate examples for the Europass REST API.

How to use

Web static content is publicly available on GitHub.

You can either download it as a zip directly from GitHub, or clone it locally on your computer typing git clone https://github.com/europass/rest-examples-js.git in a terminal. In the latter case, you will need to have Git installed on your computer.

After getting all available web static pages/ scripts, you can deploy them on a server (e.g Apache) and run main page. There, you will see all available REST actions.

Rest Examples PHP

Europass has developed a simple PHP demo client for running examples on the Europass REST API.

How to use

PHP app/code is publicly available on GitHub.

You can either download it as a zip directly from GitHub, or clone it locally on your computer typing git clone https://github.com/europass/rest-examples-php.git in a terminal. In the latter case, you will need to have Git installed on your computer.

Initially, you need to have PHP installed. After getting php files from github, you can run on a PHP CLI (php -f convert.php service-action-type [-input -output -url -locale ]) providing all required/ optional arguments. Check more details (arguments table & usage examples) on GitHub.

Rest Examples Java

Europass has developed a simple Java demo app for running examples on the Europass REST API.

How to use

Java app is publicly available on GitHub.

You can either download it as a zip directly from GitHub, or clone it locally on your computer typing git clone https://github.com/europass/rest-examples-java.git in a terminal. In the latter case, you will need to have Git installed on your computer.

You need to have JDK/JRE 7 (or later) installed & Apache maven. Then you can run mvn install in order to build app and create application jar. On a Java CLI you can run previous output jar (java -Dtype=restType -DinputPathFile=.. -DoutputPathFile=.. rest-examples-java-1.0.0-SNAPSHOT-jar-with-dependencies.jar) with all required/ optional arguments (check on GitHub).