<?xml version="1.0" encoding="utf-8"?>
<api>
<language>REST</language>
<description>REST API for elabel-service.eu accepted application-types by default: application/xml</description>
<section uri="leuchte">
<description><![CDATA[prepare and return a list of all registered energy-label]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[get the created list of energy-label]]></description>
</method>
</allowed_methods>
<parameters>
</parameters>
<childs>
</childs>
</section>
<section uri="leuchte/ID">
<description><![CDATA[get the label-file for type leuchte]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[return the requested label-code]]></description>
</method>
<method verb="post" auth="true">
<description><![CDATA[create the label and return the requested label-code]]></description>
</method>
</allowed_methods>
<parameters>
<param verb="lang">
<![CDATA[language-code, would be customers default-language if empty]]>
</param>
<param verb="align">
<![CDATA[p or l, would be the labels default orientation if empty]]>
</param>
<param verb="format">
<![CDATA[pdf or png, would be png if empty]]>
</param>
<param verb="tpl">
<![CDATA[id of the template to use, only for post-request]]>
</param>
<param verb="data">
<![CDATA[array of neccesarray data to create the label, only for post-request, you will find the allowed data-parameter in the label-template-description. The array have to lokk like e.q. POST['data']['number'], POST['data']['fittings']...]]>
</param>
</parameters>
<childs>
</childs>
</section>
<section uri="lampe">
<description><![CDATA[prepare and return a list of all registered energy-label]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[get the created list of energy-label]]></description>
</method>
</allowed_methods>
<parameters>
</parameters>
<childs>
</childs>
</section>
<section uri="lampe/ID">
<description><![CDATA[get the label-file for type lamp]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[return the requested label-code]]></description>
</method>
<method verb="post" auth="true">
<description><![CDATA[create the label and return the requested label-code]]></description>
</method>
</allowed_methods>
<parameters>
<param verb="format">
<![CDATA[pdf or png, would be png if empty]]>
</param>
<param verb="layout">
<![CDATA[default, head0foot1, head0foot1_sw, head0foot0, head0foot0_sw]]>
</param>
<param verb="tpl">
<![CDATA[id of the template to use, only for post-request]]>
</param>
<param verb="data">
<![CDATA[array of neccesarray data to create the label, only for post-request, you will find the allowed data-parameter in the label-template-description. The array have to lokk like e.q. POST['data']['number'], POST['data']['efficiency']...]]>
</param>
</parameters>
<childs>
</childs>
</section>
<section uri="licht21">
<description><![CDATA[prepare and return a list of all registered energy-label]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[get the created list of energy-label]]></description>
</method>
</allowed_methods>
<parameters>
</parameters>
<childs>
</childs>
</section>
<section uri="licht21/ID">
<description><![CDATA[get the label-file for type lamp]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[return the requested label-code]]></description>
</method>
<method verb="post" auth="true">
<description><![CDATA[create the label and return the requested label-code]]></description>
</method>
</allowed_methods>
<parameters>
<param verb="format">
<![CDATA[pdf or png, would be png if empty]]>
</param>
<param verb="layout">
<![CDATA[default, default_sw, small, small_sw]]>
</param>
<param verb="tpl">
<![CDATA[id of the template to use, only for post-request]]>
</param>
<param verb="data">
<![CDATA[array of neccesarray data to create the label, only for post-request, you will find the allowed data-parameter in the label-template-description. The array have to lokk like e.q. POST['data']['number'], POST['data']['efficiency']...]]>
</param>
</parameters>
<childs>
</childs>
</section>
<section uri="templates">
<description><![CDATA[return a list of definedtemplates for each type]]></description>
<allowed_methods>
<method verb="get" auth="true">
<description><![CDATA[get the list of templates]]></description>
</method>
</allowed_methods>
<parameters>
</parameters>
<childs>
</childs>
</section>
</api>