Справочник «Статусы»
Получение всех элементов справочника
#!php
/udata/data/getStatuses/
#!xml
<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getStatuses" generation-time="0.113479">
<response>
<code>200</code>
<data>
<item>
<id>1</id>
<guid>added</guid>
<name>Зарегистрирован</name>
<is_active>1</is_active>
</item>
<item>
<id>2</id>
<guid>canceled</guid>
<name>Аннулирован</name>
<is_active>1</is_active>
</item>
<item>
<id>3</id>
<guid>moveouted</guid>
<name>Выписан</name>
<is_active>1</is_active>
</item>
</data>
</response>
</udata>
Получение статуса по GUID
#!php
/udata/data/getStatusByGuid/{$guid}
#!xml
<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getStatusByGuid" generation-time="0.075594">
<response>
<code>200</code>
<data>
<id>1</id>
<guid>added</guid>
<name>Зарегистрирован</name>
<is_active>1</is_active>
</data>
</response>
</udata>
Получение статуса по ID
#!php
/udata/data/getStatusById/{$id}
#!xml
<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getStatusById" generation-time="0.089115">
<response>
<code>200</code>
<data>
<id>1</id>
<guid>added</guid>
<name>Зарегистрирован</name>
<is_active>1</is_active>
</data>
</response>
</udata>
No Comments