sct-snapshot-rest-api icon indicating copy to clipboard operation
sct-snapshot-rest-api copied to clipboard

Docker API does not work properly with the frontend browser

Open lordrubenbp opened this issue 6 years ago • 2 comments

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?

lordrubenbp avatar Apr 04 '18 11:04 lordrubenbp

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

rorydavidson avatar Apr 30 '18 10:04 rorydavidson

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);

lxhlxhlxh555 avatar Mar 26 '19 07:03 lxhlxhlxh555