In many scenarios, ZeyOS is used as a backend for other applications or micro services. Our REST API makes it as easy as possible to exchange data with ZeyOS or even to create your own extensions and apps.
At the heart of ZeyOS runs a PostgreSQL database - one of the fastest and powerful database systems on the planet. We desigend our schema to be as accessible and comprehensive as possible, making it easy for developers to query data, write complex import/export routines or custom applications.
The database can be accessed either through the REST API or through iXML Queries.
iXML is our XML-based programming language to adapt ZeyOS and develop new apps. It is perfectly suitable for novices without a background in computer programming and is easy to learn. We offer a comprehensive documentation to get you started and assist you at any stage of development.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ixml SYSTEM "http://developers.zeyos.com/schema/ixml.dtd">
<ixml
xmlns="https://developers.zeyos.com/schema/ixml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://developers.zeyos.com/schema/ixml https://developers.zeyos.com/schema/ixml.xsd">
<!-- Simple micro service to create a PDF label from the current item -->
<try>
<db:select var_result="item" type="self">
<db:fields>
<db:field>barcode</db:field>
<db:field>name</db:field>
</db:fields>
<db:table>items</db:table>
<db:is field="ID">$REQUEST.id</db:is>
</db:select>
<pdf:document var="pdf">
<pdf:section orientation="L" width="70" height="50"
leftmargin="10" bottommargin="10" rightmargin="10" topmargin="10">
<pdf:body>
<pdf:style align="C" fontsize="9">
<pdf:block>$item.name</pdf:block>
<pdf:barcode height="15">$item.barcode</pdf:barcode>
<pdf:linebreak offset="17" />
<pdf:block>$item.barcode</pdf:block>
</pdf:style>
</pdf:body>
</pdf:section>
</pdf:document>
<catch var="err">
<header>Content-type: plain/text</header>
<exit>$err</exit>
</catch>
</try>
<header>Content-type: application/pdf</header>
<output>$pdf</output>
</ixml>