DocumentService :: ReglementsDocument

The GET method, is used to retrieve data.

The list of necessary parameters for sending a query:
  • string numeroDocument,
  • string typeDocument.

Returns data as JSON, for use in PHP, you need to convert JSON in StdClass PHP (PHP function: json_decode ()).

Input parameters:

/6/FA00011

Example:

require (__DIR__ . '/service/WebServices100.php');

use services\WebServices100;

$url = 'http://<Your ip>:<Your Port>/WebServices100/<Your environment>/DocumentService/rest/ReglementsDocument/6/FA00011';

// Send requests to receive data
$result = WebServices100::getData($url)));

$response = json_decode($result);

Result:

Array
(
[0] => stdClass Object
(
[Id] => 1183
[Valeur] => 10
[TypeValeur] => 2
[MontantDevise] => 0
[Date] => /Date(1537912800000+0200)/
[Libelle] => Reglement 1
[IdModeReglement] => 1
[Regle] =>
[Createur] => W100
[DateModification] => /Date(1538057580000+0200)/
)



[1] => stdClass Object
(
[Id] => 1184
[Valeur] => 20
[TypeValeur] => 2
[MontantDevise] => 0
[Date] => /Date(1537912800000+0200)/
[Libelle] => Reglement 2
[IdModeReglement] => 1
[Regle] =>
[Createur] => W100
[DateModification] => /Date(1538057580000+0200)/
)



[2] => stdClass Object
(
[Id] => 1185
[Valeur] => 20
[TypeValeur] => 0
[MontantDevise] => 0
[Date] => /Date(1537912800000+0200)/
[Libelle] => Reglement 3
[IdModeReglement] => 1
[Regle] =>
[Createur] => W100
[DateModification] => /Date(1538057580000+0200)/
)



[3] => stdClass Object
(
[Id] => 1186
[Valeur] => 0
[TypeValeur] => 1
[MontantDevise] => 0
[Date] => /Date(1537912800000+0200)/
[Libelle] => Reglement 4
[IdModeReglement] => 1
[Regle] =>
[Createur] => W100
[DateModification] => /Date(1538057580000+0200)/
)



)