neo4j-labs / neodash

NeoDash - a Dashboard Builder for Neo4j
https://neo4j.com/labs/neodash/
Apache License 2.0
400 stars 129 forks source link

#VULCAN-569/API Configuration Extension for table reports #795

Open m-o-n-i-s-h opened 5 months ago

m-o-n-i-s-h commented 5 months ago

API Configuration Extension For Table Reports

This pull request introduces a significant enhancement to Neodash, an API Configuration Extension specifically designed for Table Reports. This feature empowers users to customize API configurations directly within their table reports settings. providing an efficient way to interact with external data sources.

Key changes Users can now configure API settings directly within the table report settings interface by enabling API Config Extension. This includes endpoints, methods, headers, and other parameters essential for interacting with external APIs.

image image

I have removed few implementation as it may not relevant for Neodash. As we and Niels discussed in email you can also extend this as a special type of report action. For now we have implemented in this way for our usecase.

image

On clicking the send button which is on the top right of the table report will make an api call to the method with all the rows displayed in that table. sample payload for your reference. They key name of the payload relies on the cypher query alias name.

image

On clicking on the view response, the response will be displayed in a popover.

NOTICE The program was tested solely for our own use cases, which might differ from yours.

Author Info: Monish monish.nandakumaran@mercedes-benz.com on behalf of Mercedes-Benz Research and Development India

https://github.com/mercedes-benz/mercedes-benz-foss/blob/master/PROVIDER_INFORMATION.md

Sample JSON sample-moview-json.txt

Signed off: Monish monish.nandakumaran@mercedes-benz.com

sonarcloud[bot] commented 5 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
9.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud