Preconfiguration "REST API - Client - receive or send (GET, POST)"
receive or send data by methods GET
This preconfiguration can be activated when creating a new object (e.g. by "New object ..."
in the local object menu or by pressing the Insert
key after selecting the object) and is included in the group: "/ Communication / Protocols and other communications / REST API"
This preconfiguration can be created in the object: PmaFolder
- The preconfiguration is created including the panel (object of the PmaPanel
type) is functional also as Web panel
object has methods RequestGet
. The "UrlAddr"
method returns the predefined URL address of the REST API
method has the pars
parameters. It means that the object that calls this method must have a user method "onReceive" created to process the incoming data. The first parameter will contain the requested URL address parameter and the second parameter will be used to send the reference of the calling object (pMe
method has pars
parameters. The first parameter again contains the URL addresss parameters and the second will be used to send the data.
Testing panel PmaPanel
allows to run methods RequestGet
and display unprocessed received data.
These configurators can be set before the preconfiguration is created:
|The name of created object
|Name of the object created in the Pma objects tree. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
|URL address of the server
|Full REST API server address without parameters
|URL address parameters (POST)
|Parameters entered in the URL address, for example test=1&area=3
|Enabling the test panel for the Web