Page 1 of 1

How to fetch synchronized data from the csweb server using API to dashboard

Posted: June 18th, 2025, 6:16 am
by Daffa Khairy
i want to fetch the survey data that is already deployed and synchronized to the csweb server from CSPro using an api so i can visualize it in my laravel dashboard. How can i do that ?

Re: How to fetch synchronized data from the csweb server using API to dashboard

Posted: June 24th, 2025, 9:18 am
by Gregory Martin
Take a look at the Swagger documentation of the CSWeb REST API:

https://github.com/csprousers/csweb/blo ... agger.json

CSWeb 8.1, which hasn't been released yet, supports easily retrieving cases in JSON format. With earlier versions of CSWeb, however, you should be able to use this path to retrieve case information:
/dictionaries/{dictName}/cases

Re: How to fetch synchronized data from the csweb server using API to dashboard

Posted: June 24th, 2025, 12:03 pm
by htuser
Thanks a lot Greg for sharing. Since CSPro support JS , I will try to use the CSWeb api for some operations, for example
having server file signature before Sync.
So, I reformat the Swagger documentation in a PDF format to facilitate users like Daffa Khairy:
CSWeb API With JS Examples.pdf
There is also a Markdown version here: https://github.com/gregvolny/CSWeb-API- ... ntation.md
Notice: I generated this document with all the examples using Google Gemini and Jules and I did not test all the generated JS codes!
Best