opendcs / rest_api

Rest API that serves OpenDCS database objects as JSON
Apache License 2.0
1 stars 3 forks source link

Remove backend gateway and have javascript talk directly with the API #197

Closed wjonassen closed 1 month ago

wjonassen commented 1 month ago

Currently, javascript hits its own webserver and then that is relayed to the api. This is unnecessarily complicated, so now the browser will talk directly with the API, removing that middle step.

Solution

The goal is to remove the gateway code completely and have the user set the path to the api in a config file.

how you tested the change

Need to test that all of the pages and ajax calls interact the same as before. NOTE - CORS settings will need to be set properly as well.

wjonassen commented 1 month ago

This is just a small change to begin with so I can get some comments before I make the changes for the entire project. I've done login, as well as the platforms page. Once we agree, the rest of the pages will be updated to follow the same process.

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 30%)
3.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud