<application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.siemac.org/metamac/rest/export/v1.0/domain"><grammars><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.siemac.org/metamac/rest/common/v1.0/domain" xmlns:tns="http://www.siemac.org/metamac/rest/export/v1.0/domain" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.siemac.org/metamac/rest/export/v1.0/domain">
    <xs:import namespace="http://www.siemac.org/metamac/rest/common/v1.0/domain"/>
    <xs:element name="exportation" type="tns:Exportation"/>
    <xs:complexType name="DatasetSelectionDimensions">
        <xs:complexContent>
            <xs:extension base="ns1:ListBase">
                <xs:sequence>
                    <xs:element form="qualified" maxOccurs="unbounded" minOccurs="0" name="dimension" type="tns:DatasetSelectionDimension"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="DatasetSelectionDimension">
        <xs:sequence>
            <xs:element form="qualified" name="dimensionId" type="xs:string"/>
            <xs:element form="qualified" minOccurs="0" name="dimensionValues" type="tns:DimensionValues"/>
            <xs:element form="qualified" minOccurs="0" name="dimensionFilters" type="tns:DimensionFilters"/>
            <xs:element form="qualified" minOccurs="0" name="labelVisualisationMode" type="tns:LabelVisualisationMode"/>
            <xs:element form="qualified" minOccurs="0" name="position" type="xs:int"/>
            <xs:element form="qualified" minOccurs="0" name="reversed" type="xs:boolean"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DimensionValues">
        <xs:complexContent>
            <xs:extension base="ns1:ListBase">
                <xs:sequence>
                    <xs:element form="qualified" maxOccurs="unbounded" minOccurs="0" name="dimensionValue" type="xs:string"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="DimensionFilters">
        <xs:sequence>
            <xs:element form="qualified" minOccurs="0" name="range" type="tns:Range"/>
            <xs:element form="qualified" minOccurs="0" name="last" type="xs:int"/>
            <xs:element form="qualified" minOccurs="0" name="after" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Range">
        <xs:sequence>
            <xs:element form="qualified" minOccurs="0" name="start" type="xs:string"/>
            <xs:element form="qualified" minOccurs="0" name="end" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DatasetSelection">
        <xs:sequence>
            <xs:element form="qualified" name="dimensions" type="tns:DatasetSelectionDimensions"/>
            <xs:element form="qualified" minOccurs="0" name="attributes" type="tns:DatasetSelectionAttributes"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DatasetSelectionAttributes">
        <xs:complexContent>
            <xs:extension base="ns1:ListBase">
                <xs:sequence>
                    <xs:element form="qualified" maxOccurs="unbounded" minOccurs="0" name="attribute" type="tns:DatasetSelectionAttribute"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="DatasetSelectionAttribute">
        <xs:sequence>
            <xs:element form="qualified" name="attributeId" type="xs:string"/>
            <xs:element form="qualified" minOccurs="0" name="labelVisualisationMode" type="tns:LabelVisualisationMode"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Exportation">
        <xs:sequence>
            <xs:element form="qualified" name="datasetSelection" type="tns:DatasetSelection"/>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="LabelVisualisationMode">
        <xs:restriction base="xs:string">
            <xs:enumeration value="CODE"/>
            <xs:enumeration value="LABEL"/>
            <xs:enumeration value="CODE_AND_LABEL"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cdomain="http://www.siemac.org/metamac/rest/common/v1.0/domain" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.siemac.org/metamac/rest/common/v1.0/domain">
    <xs:complexType name="ListBase">
        <xs:sequence/>
        <xs:attribute name="kind" type="xs:string" use="required"/>
        <xs:attribute name="total" type="xs:unsignedLong" use="required"/>
        <xs:attribute name="limit" type="xs:unsignedLong"/>
        <xs:attribute name="offset" type="xs:unsignedLong"/>
        <xs:attribute name="selfLink" type="xs:string"/>
        <xs:attribute name="firstLink" type="xs:string"/>
        <xs:attribute name="previousLink" type="xs:string"/>
        <xs:attribute name="nextLink" type="xs:string"/>
        <xs:attribute name="lastLink" type="xs:string"/>
    </xs:complexType>
</xs:schema>
</grammars><resources base="https://iestadis.edatos.io/statistical-visualizer-api/apis/export"><resource path="/v1.0"><resource path="/csv_comma/datasets/{agencyID}/{resourceID}/{version}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><param name="version" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/csv_semicolon/datasets/{agencyID}/{resourceID}/{version}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><param name="version" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/excel/datasets/{agencyID}/{resourceID}/{version}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><param name="version" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/excel/indicators/{resourceID}"><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/excel/indicatorsSystems/{indicatorSystemCode}/indicatorsInstances/{resourceID}"><param name="indicatorSystemCode" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/excel/queries/{agencyID}/{resourceID}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/image"><method name="POST"><request><representation mediaType="application/octet-stream"><param name="request" style="plain" type="xs:string"/></representation><param name="filename" style="query" type="xs:string"/><param name="width" style="query" type="xs:float"/><param name="type" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="filename" style="query" type="xs:string"/><param name="width" style="query" type="xs:float"/><param name="type" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="svg" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/px/datasets/{agencyID}/{resourceID}/{version}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><param name="version" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/px/indicators/{resourceID}"><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/px/indicatorsSystems/{indicatorSystemCode}/indicatorsInstances/{resourceID}"><param name="indicatorSystemCode" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/px/queries/{agencyID}/{resourceID}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/tsv/datasets/{agencyID}/{resourceID}/{version}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><param name="version" style="template" type="xs:string"/><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/tsv/indicators/{resourceID}"><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/tsv/indicatorsSystems/{indicatorSystemCode}/indicatorsInstances/{resourceID}"><param name="indicatorSystemCode" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource><resource path="/tsv/queries/{agencyID}/{resourceID}"><param name="agencyID" style="template" type="xs:string"/><param name="resourceID" style="template" type="xs:string"/><method name="POST"><request><representation mediaType="application/xml" element="ns1:exportation"/><representation mediaType="application/json"/><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/></request><response><representation mediaType="application/octet-stream"/></response></method><method name="POST"><request><param name="lang" style="query" type="xs:string"/><param name="filename" style="query" type="xs:string"/><param name="fields" style="query" type="xs:string"/><param name="decimalSeparator" style="query" type="xs:string"/><representation mediaType="application/x-www-form-urlencoded"><param name="jsonBody" style="query" type="xs:string"/></representation></request><response><representation mediaType="application/octet-stream"/></response></method></resource></resource></resources></application>