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

Other discussions about CSPro
Post Reply
Daffa Khairy
Posts: 4
Joined: May 7th, 2025, 4:25 am

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

Post 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 ?
Gregory Martin
Posts: 1948
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

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

Post 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
htuser
Posts: 687
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

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

Post 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
You do not have the required permissions to view the files attached to this post.
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply