Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to test REST API functions via browser

  • TheFarmer
  • TheFarmer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 5 months ago #234132 by TheFarmer
Hi,

I want to use only the browser to see the responses of Lime API functions. I used this method to test other REST APIs. For example, Mozilla has a built in JSON parser and can display the REST responses in a user friendly format. This could be used by new developers to become familiar with the API and do testing faster than using programming code.

The problem is that I cannot figure out the full URLs required for these function calls.
I know the base URL is
https://<hostname>/limesurvey/index.php/admin/remotecontrol. I know how to use java code to call various functions (e.g. list_surveys, list_questions). I tried appending the names of these functions to base URL (e.g. https://<hostname>/limesurvey/index.php/admin/remotecontrol/list_surveys) but does not work.

I would appreciate if anyone could provide some samples of complete URLs, including some examples where input parameters have to be provided as well (e.g list_questions requires survey_id).

Thank You

Please Log in to join the conversation.

More
1 year 5 months ago #234157 by bismark

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose