Skip to main content

Справочник «Экстренность»

Получение всех элементов справочника

#!php

/udata/data/getEmergencies/
#!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getEmergencies" generation-time="0.176694">
    <response>
        <code>200</code>
        <data>
            <item>
                <id>1</id>
                <guid>planned</guid>
                <name>плановая</name>
                <is_active>1</is_active>
            </item>
            <item>
                <id>2</id>
                <guid>crashed</guid>
                <name>неотложная</name>
                <is_active>1</is_active>
            </item>
            <item>
                <id>3</id>
                <guid>extra</guid>
                <name>экстренная</name>
                <is_active>1</is_active>
            </item>
        </data>
    </response>
</udata>

Получение экстренности по GUID

#!php

/udata/data/getEmergencyByGuid/{$guid}
#!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getEmergencyByGuid" generation-time="0.081604">
    <response>
        <code>200</code>
        <data>
            <id>3</id>
            <guid>extra</guid>
            <name>экстренная</name>
            <is_active>1</is_active>
        </data>
    </response>
</udata>

Получение экстренности по ID

#!php

/udata/data/getEmergencyById/{$id}
#!xml

<?xml version="1.0" encoding="utf-8"?>
<udata xmlns:xlink="http://www.w3.org/TR/xlink" module="data" method="getEmergencyById" generation-time="0.090066">
    <response>
        <code>200</code>
        <data>
            <id>1</id>
            <guid>planned</guid>
            <name>плановая</name>
            <is_active>1</is_active>
        </data>
    </response>
</udata>