Preconfiguration "REST API - Client - receive or send (GET, POST)"
receive or send data by GET
This preconfiguration can be activated when creating a new object (e.g. by "New object ..."
in the local object menu or after pressing the Insert
key after selecting the object) and is included in the group: "/ Communication / XML, JSON, CSV, text"
This preconfiguration can be created in the object: PmaFolder
- The preconfiguration is created including the panel (object of the PmaPanel
type) is functional also a 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 tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, 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|