IHTSDO / sct-snapshot-rest-api

Rest API for SNOMED CT Snapshot views, powered by Node.js, Express & MongoDB
Apache License 2.0
60 stars 44 forks source link

Docker API does not work properly with the frontend browser #33

Open lordrubenbp opened 6 years ago

lordrubenbp commented 6 years ago

Hi, I used the new docker method to launch the API, but although everything works fine when I try to use it with the frontend browser, the content of the screen is partially displayed.

Have they changed anything from the manual version?

rorydavidson commented 6 years ago

If you try to access the REST API do you get any data being returned?

lxhlxhlxh555 commented 5 years ago

I met the same problem too, and I have solved it. The point is that the frontend browser only can process the APIv1 response, while the REST API backend started by docker default returns the APIv2 response.

My solution: Set URL /snomed route to sonmedv1 so that the REST API backend will default return the APIv1 response. That is to modify one line in the file sct-snapshot-rest-api/app.js: from app.use('/snomed', snomed); to app.use('/snomed', snomedv1);