ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help /  / 
  • Overview
  • Using WDTestRest
  • URL parameters
  • Headers
  • Content
  • Authentication
  • Send
  • History
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
WDTestRest allows you to test calls to an HTTP REST web service or to run a web API accessible via HTTP.
This tool is automatically launched when a REST web service is tested from the WINDEV or WEBDEV editor. The methods of the web service are automatically listed.
Remarks:
  • The following methods are supported: HTTP GET, POST, PUT, PATCH, DELETE, COPY and HEAD.
  • WDTestRest supports the HTTP and OAuth authentication systems.
  • You can manage the headers sent as well as the ones received at runtime.
  • The content of the requests can be customized. You can use "FormData", "URL-encoded" or binary format.
  • WINDEV and WEBDEV must be installed.
Using WDTestRest

URL parameters

You have the ability to specify the URL parameters ("Parameters" button):
  • To add a parameter, type its name and a value.
  • To delete a parameter, click the "-" button associated with the parameter.
  • To modify a parameter, enter the new values in the corresponding fields.
  • To reorder the parameters, click and hold the "" button of a given parameter, then drag it to the desired position and release. Release the left mouse button when finished.

Headers

In the "Headers" tab, you can manage the headers that will be sent with the request.
You can manage headers the same way you manage URL parameters.
You can also manage the content of headers manually, via the "Bulk edit" button.
Note: in this case, data must respect the format of HTTP headers.

Content

All requests, except GET, can convey content.
This content can correspond to form data, binary data, etc.
In the "Content" tab, expand the "Type" combo box and choose the type of content to be sent. The interface will adapt to your choice.
For forms ("FormData" or "URL-encoded"), data is edited in the same way as the headers and URL parameters.

Authentication

WDTestRest supports basic HTTP authentication, with the username and password to be sent during the request.
You can also use OAuth 2.0.
WDTestRest prompts you to specify the OAuth credentials and will obtain the access token to be used to run the request.
Note: You can keep OAuth authentication data for future calls by selecting "Store token".

Send

Once the parameters of the request have been defined, click "Send" to send them to the specified URL.
After the request has been executed, the result is displayed at the bottom of the window:
  • HTTP content (response),
  • cookies,
  • headers.
Each tab shows the data received. XML and JSON codes can be formatted as required.
To get the WLanguage code corresponding to the request call, click "Generate WL code".

History

Each time an HTTP request is sent, WDTestRest stores all the details (URL, parameters, headers, content, etc.) in a history log.
This history log, accessible from the WDTestRest pane, can be used to run previous requests.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/27/2025

Send a report | Local help