| GET | /freemotion_images | ||
|---|---|---|---|
| GET | /cl_freemotion_images |
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class _cl_freemotion_image implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $id_tournee=null,
/** @var string|null */
public ?string $id_operateur=null,
/** @var string|null */
public ?string $id_client=null,
/** @var string|null */
public ?string $num_facture=null,
/** @var int */
public int $type=0,
/** @var int */
public int $index=0,
/** @var string|null */
public ?string $filename=null,
/** @var string|null */
public ?string $image_b64=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['id_tournee'])) $this->id_tournee = $o['id_tournee'];
if (isset($o['id_operateur'])) $this->id_operateur = $o['id_operateur'];
if (isset($o['id_client'])) $this->id_client = $o['id_client'];
if (isset($o['num_facture'])) $this->num_facture = $o['num_facture'];
if (isset($o['type'])) $this->type = $o['type'];
if (isset($o['index'])) $this->index = $o['index'];
if (isset($o['filename'])) $this->filename = $o['filename'];
if (isset($o['image_b64'])) $this->image_b64 = $o['image_b64'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->id_tournee)) $o['id_tournee'] = $this->id_tournee;
if (isset($this->id_operateur)) $o['id_operateur'] = $this->id_operateur;
if (isset($this->id_client)) $o['id_client'] = $this->id_client;
if (isset($this->num_facture)) $o['num_facture'] = $this->num_facture;
if (isset($this->type)) $o['type'] = $this->type;
if (isset($this->index)) $o['index'] = $this->index;
if (isset($this->filename)) $o['filename'] = $this->filename;
if (isset($this->image_b64)) $o['image_b64'] = $this->image_b64;
return empty($o) ? new class(){} : $o;
}
}
class cl_freemotion_imageResponse implements JsonSerializable
{
public function __construct(
/** @var array<_cl_freemotion_image>|null */
public ?array $images=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['images'])) $this->images = JsonConverters::fromArray('_cl_freemotion_image', $o['images']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->images)) $o['images'] = JsonConverters::toArray('_cl_freemotion_image', $this->images);
return empty($o) ? new class(){} : $o;
}
}
class cl_freemotion_imageRequest implements JsonSerializable
{
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
return empty($o) ? new class(){} : $o;
}
}
PHP cl_freemotion_imageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /freemotion_images HTTP/1.1 Host: freemotion-staging.milliet.paris Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"images":[{"id_tournee":"String","id_operateur":"String","id_client":"String","num_facture":"String","type":0,"index":0,"filename":"String","image_b64":"String"}]}