OHDSI WebAPI contains all OHDSI RESTful services that can be called from OHDSI applications.
OHDSI WebAPI is a Java 8 web application that utilizes a PostgreSQL database for storage.
The API Documentation is found at http://webapidoc.ohdsi.org/
Documentation can be found a the Web API Installation Guide which covers the system requirements and installation instructions.
The following parameters are used:
security.saml.idpMetadataLocation=classpath:saml/dev/idp-metadata.xml - path to metadata used by identity providersecurity.saml.metadataLocation=saml/dev/sp-metadata.xml - service provider metadata pathsecurity.saml.keyManager.keyStoreFile=classpath:saml/samlKeystore.jks - path to keystoresecurity.saml.keyManager.storePassword=nalle123 - keystore passwordsecurity.saml.keyManager.passwords.arachnenetwork=nalle123 - private key passwordsecurity.saml.keyManager.defaultKey=apollo - keystore aliassecurity.saml.sloUrl=https://localhost:8443/cas/logout - identity provider logout URLsecurity.saml.callbackUrl=http://localhost:8080/WebAPI/user/saml/callback - URL called from identity provider after loginSample idp metadata and sp metadata config files for okta:
saml/dev/idp-metadata-okta.xmlsaml/dev/sp-metadata-okta.xmlThe following parameters are used to enable/disable certain provider:
security.auth.windows.enabledsecurity.auth.kerberos.enabledsecurity.auth.openid.enabledsecurity.auth.facebook.enabledsecurity.auth.github.enabledsecurity.auth.google.enabledsecurity.auth.jdbc.enabledsecurity.auth.ldap.enabledsecurity.auth.ad.enabledsecurity.auth.cas.enabledAcceptable values are true and false
Instructions can be found at webapi-component-geospatial
It was chosen to use embedded PG instead of H2 for unit tests since H2 doesn't support window functions, md5 function, HEX to BIT conversion, setval, set datestyle, CTAS + CTE.
To start the application locally, the following quick steps (all commands are executed from repository root directory)
mvn -v), docker-ce (check via docker -v), psql command line client
(check via psql --version) or other tool that allows to connect to postgres DB.mvn clean install and make sure it completes successfully, resolve dependency issues if any.docker create --name postgres-webapi -p 8432:5432 -e POSTGRES_PASSWORD=ohdsi postgres:15.0-alpine.docker start postgres-webapi.
Verify that you can connect via psql console (PGPASSWORD='ohdsi' psql -d postgresql://localhost:8432/?user=postgres).export JAVA_HOME=/usr/lib/jvm/zulu8-ca-amd64mvn clean install spring-boot:run -Dmaven.test.skip=true -P webapi-postgresql -s src/dev/settings.xml -f pom.xmlINSERT INTO sec_user_role (user_id, role_id, origin) VALUES (1000, 2, 'SYSTEM');
and log in again.At this point you have the application running and admin account operational. To actually use it, additional steps are required to set up privileges and at least one CDM database. They are covered in the respective documentation sections.
OHDSI WebAPI is licensed under Apache License 2.0
(top 30 of 68)
Java
66.2%
TSQL
30.5%
PLSQL
3.0%
OHDSI WebAPI contains all OHDSI RESTful services that can be called from OHDSI applications.
OHDSI WebAPI is a Java 8 web application that utilizes a PostgreSQL database for storage.
The API Documentation is found at http://webapidoc.ohdsi.org/
Documentation can be found a the Web API Installation Guide which covers the system requirements and installation instructions.
The following parameters are used:
security.saml.idpMetadataLocation=classpath:saml/dev/idp-metadata.xml - path to metadata used by identity providersecurity.saml.metadataLocation=saml/dev/sp-metadata.xml - service provider metadata pathsecurity.saml.keyManager.keyStoreFile=classpath:saml/samlKeystore.jks - path to keystoresecurity.saml.keyManager.storePassword=nalle123 - keystore passwordsecurity.saml.keyManager.passwords.arachnenetwork=nalle123 - private key passwordsecurity.saml.keyManager.defaultKey=apollo - keystore aliassecurity.saml.sloUrl=https://localhost:8443/cas/logout - identity provider logout URLsecurity.saml.callbackUrl=http://localhost:8080/WebAPI/user/saml/callback - URL called from identity provider after loginSample idp metadata and sp metadata config files for okta:
saml/dev/idp-metadata-okta.xmlsaml/dev/sp-metadata-okta.xmlThe following parameters are used to enable/disable certain provider:
security.auth.windows.enabledsecurity.auth.kerberos.enabledsecurity.auth.openid.enabledsecurity.auth.facebook.enabledsecurity.auth.github.enabledsecurity.auth.google.enabledsecurity.auth.jdbc.enabledsecurity.auth.ldap.enabledsecurity.auth.ad.enabledsecurity.auth.cas.enabledAcceptable values are true and false
Instructions can be found at webapi-component-geospatial
It was chosen to use embedded PG instead of H2 for unit tests since H2 doesn't support window functions, md5 function, HEX to BIT conversion, setval, set datestyle, CTAS + CTE.
To start the application locally, the following quick steps (all commands are executed from repository root directory)
mvn -v), docker-ce (check via docker -v), psql command line client
(check via psql --version) or other tool that allows to connect to postgres DB.mvn clean install and make sure it completes successfully, resolve dependency issues if any.docker create --name postgres-webapi -p 8432:5432 -e POSTGRES_PASSWORD=ohdsi postgres:15.0-alpine.docker start postgres-webapi.
Verify that you can connect via psql console (PGPASSWORD='ohdsi' psql -d postgresql://localhost:8432/?user=postgres).export JAVA_HOME=/usr/lib/jvm/zulu8-ca-amd64mvn clean install spring-boot:run -Dmaven.test.skip=true -P webapi-postgresql -s src/dev/settings.xml -f pom.xmlINSERT INTO sec_user_role (user_id, role_id, origin) VALUES (1000, 2, 'SYSTEM');
and log in again.At this point you have the application running and admin account operational. To actually use it, additional steps are required to set up privileges and at least one CDM database. They are covered in the respective documentation sections.
OHDSI WebAPI is licensed under Apache License 2.0
(top 30 of 68)
Java
66.2%
TSQL
30.5%
PLSQL
3.0%