This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
documentation:software:webapi:setup [2016/08/23 18:53] jhardin |
documentation:software:webapi:setup [2018/04/23 19:11] (current) lee |
||
|---|---|---|---|
| Line 169: | Line 169: | ||
| ---- | ---- | ||
| The webapi.source and webapi.source_daimon tables were created when you started the tomcat service with the WebAPI war deployed. However, these tables must be populated with a source and daimons for CDM, Vocabulary and Results must be added to the source in order to use the OHDSI tools. | The webapi.source and webapi.source_daimon tables were created when you started the tomcat service with the WebAPI war deployed. However, these tables must be populated with a source and daimons for CDM, Vocabulary and Results must be added to the source in order to use the OHDSI tools. | ||
| + | |||
| + | Here are the valid values for the daimon_type in the source_daimon table: | ||
| + | 0 = CDM, 1 = VOCABULARY, 2 = RESULTS, 3 = EVIDENCE | ||
| + | |||
| For this example it is assumed that the CDM and Vocabulary exist as a separate schema in the same database instance. The CDM/Vocabulary tables are in the schema ‘cdm’ and the ohdsi tables are installed in the 'ohdsi' schema. | For this example it is assumed that the CDM and Vocabulary exist as a separate schema in the same database instance. The CDM/Vocabulary tables are in the schema ‘cdm’ and the ohdsi tables are installed in the 'ohdsi' schema. | ||
| Line 220: | Line 224: | ||
| ===Errors when calling sources URL=== | ===Errors when calling sources URL=== | ||
| ---- | ---- | ||
| - | The most likely error you will receive when accessing http://localhost:8080/WebAPI/source/sources | + | The most likely error you will receive when accessing %%http://localhost:8080/WebAPI/source/sources%% |
| is the ohdsi_app_user does not have permission on relation ‘source’. This means the default privileges were not assigned when logged into the database as ohdsi_admin_user. These table permissions will have to be granted manually. | is the ohdsi_app_user does not have permission on relation ‘source’. This means the default privileges were not assigned when logged into the database as ohdsi_admin_user. These table permissions will have to be granted manually. | ||
| If no error is appearing in the logs at all, please confirm the Tomcat servlet engine is listening on port 8080. If it is on a different port, you will need to adjust the URLs above to the correct port. | If no error is appearing in the logs at all, please confirm the Tomcat servlet engine is listening on port 8080. If it is on a different port, you will need to adjust the URLs above to the correct port. | ||