2015-10-24 23:48:48 +00:00
Welcome to the OBP API Explorer
2015-11-07 12:42:08 +00:00
===============================
2011-10-16 13:40:36 +00:00
2013-07-30 08:35:29 +00:00
# ABOUT
2012-12-10 21:08:29 +00:00
2015-10-24 23:48:48 +00:00
This application is used to explore the OBP API and interact with the data and services in the context of the logged in user.
2012-12-10 21:08:29 +00:00
2012-12-10 21:44:38 +00:00
2013-07-30 08:35:29 +00:00
# LICENSE
2012-12-10 21:39:18 +00:00
2013-07-30 08:35:29 +00:00
This project is licensed under the AGPL V3 (see NOTICE) and a commercial license from TESOBE.
2012-09-29 20:08:45 +00:00
2013-07-30 08:35:29 +00:00
# SETUP
2011-10-16 13:40:36 +00:00
2015-11-07 12:42:08 +00:00
The project is using sbt or Maven 3 as a build tool.
2012-09-29 19:57:28 +00:00
See build.scala or pom.xml respectively for the dependencies.
2011-10-16 13:40:36 +00:00
2012-04-15 17:32:44 +00:00
----
2012-04-15 17:18:15 +00:00
To compile and run jetty, cd into the root directory (where this file is) and run:
$ sbt
...
> compile
> ~;container:start; container:reload /
2012-04-15 17:32:44 +00:00
(Note that you first have to start sbt and then on its console start jetty with the container:start task, otherwise it will exit immediately. More here: https://github.com/siasia/xsbt-web-plugin/wiki)
2011-10-16 13:40:36 +00:00
2012-04-15 17:18:15 +00:00
In OS X, sbt can be installed with $ sudo port install sbt
2012-04-15 17:32:44 +00:00
----
2012-04-15 17:18:15 +00:00
Alternatively, maven can also be used:
mvn jetty:run
2011-10-16 14:30:22 +00:00
2012-05-18 09:52:23 +00:00
2011-10-16 14:30:22 +00:00
Note: You may need to add the pluginGroup to the $HOME/.m2/settings.xml
< settings xmlns = "http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
...
< pluginGroups >
< pluginGroup > org.mortbay.jetty< / pluginGroup >
< / pluginGroups >
...
< / settings >
2012-09-29 19:57:28 +00:00
---
2011-10-16 14:30:22 +00:00
2015-11-07 12:42:08 +00:00
## Ubuntu
If you use Ubuntu (or a derivate) and encrypted home directories (e.g. you have ~/.Private), you might run into the following error when the project is built:
uncaught exception during compilation: java.io.IOException
[ERROR] File name too long
[ERROR] two errors found
[DEBUG] Compilation failed (CompilerInterface)
The current workaround is to move the project directory onto a different partition, e.g. under /opt/ .
2013-07-30 08:35:29 +00:00
# PROPS FILE
2013-06-14 09:15:07 +00:00
2013-06-19 14:49:08 +00:00
There is a props file template provided at src/main/resources/props/sample.props.template. It needs to be renamed and modified in order for
2013-07-30 08:35:29 +00:00
the application to work.
2011-10-16 13:40:36 +00:00
2013-06-19 14:49:08 +00:00
1. Renaming:
The sample.props.template file must be renamed for Lift to find it (https://www.assembla.com/wiki/show/liftweb/Properties). Renaming it to default.props
should be the easiest way to get started.
2015-04-01 19:01:27 +00:00
*base_url*
2013-06-19 14:49:08 +00:00
2015-04-01 19:01:27 +00:00
The base_url is used to calculate the callback url to give to the Open Bank Project API server. This should just be the
2015-10-24 23:48:48 +00:00
base url used to access the API Explorer. So if you're running a copy of the API Explorer at
api-explorer.example.com over https, on the standard port, it would be "https://api-explorer.example.com".
An example value for local development could be: http://127.0.0.1:8082 (8080 is the default Lift development port)
2013-06-19 14:49:08 +00:00
2013-07-30 08:35:29 +00:00
*api_hostname*
2013-06-19 14:49:08 +00:00
The api_hostname should be the base url of the Open Bank Project API. For example, https://api.openbankproject.com/api
2013-07-30 08:35:29 +00:00
*obp_consumer_key*
*obp_secret_key*
2013-06-19 14:49:08 +00:00
The keys are obtained by registering as a developer on the Open Bank Project API server located at "api_hostname".
All in all, a props file could look something like:
api_hostname=https://api.openbankproject.com/api
obp_consumer_key=uodsifnodsfifdsliufdsliufdsfdsfsdfsx
obp_secret_key=iuesbfiyvglxzgifg7eisgei7fglesfi
2015-10-24 23:48:48 +00:00
base_url=http://localhost:8082