<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://wadl.dev.java.net/2009/02">
    <doc xmlns:jersey="http://jersey.java.net/" jersey:generatedBy="Jersey: 3.1.11 2025-08-08 07:58:43"/>
    <doc xmlns:jersey="http://jersey.java.net/" jersey:hint="This is simplified WADL with user and core resources only. To get full WADL with extended resources use the query parameter detail. Link: http://transkribus.eu/TrpServer/rest/application.wadl?detail=true"/>
    <grammars>
        <include href="application.wadl/xsd2.xsd">
            <doc title="Generated" xml:lang="en"/>
        </include>
        <include href="application.wadl/xsd0.xsd">
            <doc title="Generated" xml:lang="en"/>
        </include>
        <include href="application.wadl/xsd1.xsd">
            <doc title="Generated" xml:lang="en"/>
        </include>
    </grammars>
    <resources base="http://transkribus.eu/TrpServer/rest/">
        <resource path="/du">
            <resource path="/{collId}/{modelId}/recognition">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="decodeDU" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/LA">
            <method id="analyzeLayout" name="POST">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBlockSeg" style="query" type="xs:boolean" default="false"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doLineSeg" style="query" type="xs:boolean" default="true"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWordSeg" style="query" type="xs:boolean" default="false"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doPolygonToBaseline" style="query" type="xs:boolean" default="false"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBaselineToPolygon" style="query" type="xs:boolean" default="false"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="query" type="xs:string" default="TranskribusLaJob"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                    <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="jobParameters" mediaType="application/json"/>
                    <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="jobParameters" mediaType="application/xml"/>
                </request>
                <response>
                    <representation mediaType="application/xml"/>
                    <representation mediaType="application/json"/>
                </response>
            </method>
            <resource path="/la2Inference">
                <method id="la2Inference" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="threshold" style="query" type="xs:double" default="0.75"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="addToPageXML" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="approxPolyFrac" style="query" type="xs:double" default="0.7"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="combineWithBaseLayout" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keepEmptyRegions" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="splitLines" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="lineOverlapFraction" style="query" type="xs:double" default="0.05"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="clusterLinesWithoutRegions" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="jobParameters" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="jobParameters" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/tableInference">
                <method id="tableInference" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="jobParameters" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="jobParameters" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/costs">
                <method id="getLaCosts" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfPages" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/analyze">
                <method id="analyzeLayout" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBlockSeg" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doLineSeg" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWordSeg" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doPolygonToBaseline" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBaselineToPolygon" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="query" type="xs:string" default="TranskribusLaJob"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/search">
            <resource path="/{collId}/searchReplace">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="searchReplaceFulltext" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="query" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="start" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="rows" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="legacy" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="replaceTerm" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/tags">
                <method id="searchTags" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pageId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tagName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tagValue" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="regionType" style="query" type="xs:string" default="Line"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="exactMatch" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="caseSensitive" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="attributes" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="legacy" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="start" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="rows" style="query" type="xs:int" default="20000"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="trpGuiVersion" style="header" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/resetIndex">
                <method id="resetIndexFlag" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pageId" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/replace">
                <method id="replace" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="searchReplaceParams" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="searchReplaceParams" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/keyword">
                <method id="searchKW" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="query" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="start" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="rows" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="probL" style="query" type="xs:float"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="probH" style="query" type="xs:float"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fuzzy" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sorting" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/fulltext">
                <method id="searchFulltext" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="query" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="start" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="rows" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="legacy" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/crowdsourcing">
            <resource path="/{collId}/unsubscribe">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="unsubscribe" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/list">
                <method id="listCollections" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/count">
                <method id="countCollections" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/subscribe">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getCollectionDetails" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="subscribe" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/models">
            <resource path="/{type}/{id}/validationData/docs">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getValidationGtSourceDocsByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/list">
                <method id="listModels" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="onlyActive" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="all" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="releaseLevel" style="query" type="xs:int" default="0"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/collections">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="listCollections" name="GET">
                    <request>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getModelDetails" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="updateModelById" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpModelMetadata" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpModelMetadata" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="deleteHtrById" name="DELETE">
                    <request>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{modelId}/collections">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <method id="addModelCollection" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{modelId:[0-9]+}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <method id="getModel" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="deleteModel" name="DELETE">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/fieldParams">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getFieldParams" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/">
                <method id="updateModel" name="POST">
                    <request>
                        <representation mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{modelId:[0-9]+}/collections/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <method id="listCollections" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="transcriptIds" style="query" type="xs:boolean" default="false"/>
                        <representation mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/trainData/docs">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getTrainGtSourceDocsByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getModels" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="releaseLevel" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="prov" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="centuries" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isoLanguages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="scriptTypes" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="creator" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="publisher" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="docType" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="featured" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="application" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="slug" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labels" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="facetLimit" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="minFacetCount" style="query" type="xs:int" default="2"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/trainData/stats">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getTrainGtStatsByHtrId" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{modelId}/collections/{collId}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="removeModelFromCollection" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{modelId:[0-9]+}/collections/{collId}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="addModelCollection" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="removeP2PaLAModelFromCollection" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/validationData">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getValidationGtByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/trainData">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getTrainGtByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{type}/{id}/validationData/stats">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="template" type="xs:string"/>
                <method id="getValidationGtStatsByHtrId" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/files">
            <resource path="/list">
                <method id="listDocDirs" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/filelist">
                <method id="listFiles" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/check">
                <method id="checkDocDir" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/jobs">
            <method id="createJob" name="POST">
                <response>
                    <representation mediaType="application/json"/>
                    <representation mediaType="application/xml"/>
                </response>
            </method>
            <resource path="/{id}/errors">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:string"/>
                <method id="getErrorsForJob" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/list">
                <method id="getJobs" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filterByUser" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="50"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{jobId}/undo">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobId" style="template" type="xs:int"/>
                <method id="undoJob" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/restartAllJobsOfUser/{userid}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="template" type="xs:int"/>
                <method id="restartAllByUser" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:string"/>
                <method id="getJobById" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="updateJob" name="POST">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}/kill">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:string"/>
                <method id="killJob" name="POST">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/count">
                <method id="countJobs" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filterByUser" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{jobId}/creditTransactions">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobId" style="template" type="xs:int"/>
                <method id="getTransactionsByJob" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/credits">
            <method id="createCreditPackage" name="POST">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sourcePackageId" style="query" type="xs:int"/>
                </request>
                <response>
                    <representation mediaType="application/json"/>
                    <representation mediaType="application/xml"/>
                </response>
            </method>
            <method id="getCreditPackagesByUser" name="GET">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="minBalance" style="query" type="xs:double"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="onlyActive" style="query" type="xs:boolean" default="true"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="includeExpired" style="query" type="xs:boolean" default="true"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isShared" style="query" type="xs:boolean"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="shareable" style="query" type="xs:boolean"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                </request>
                <response>
                    <representation mediaType="*/*"/>
                </response>
            </method>
            <resource path="/{id}/collections">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getCollectionsByCreditPackage" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/history">
                <method id="getAccountHistory" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="manageCredits" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sourceUserId" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}/creditTransactions">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getTransactionsByCreditPackage" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/creditTransactions">
                <method id="getTransactionsByUserPackages" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getCreditPackage" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="updateCreditPackage" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/costs">
                <method id="getCosts" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="time" style="query" type="xs:long"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/products">
                <method id="getProducts" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/kws">
            <resource path="/queries/{id}/keywords">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getKeywords" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/queries">
                <method id="getKwsQueries" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="doCitlabKws" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="query" style="query" type="xs:string"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="kwsParameters" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="kwsParameters" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/queries/{id}/resultData">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getKwsResultData" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/queries/{id}/hits">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getKwsHits" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keyword" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/">
            <resource path="/downloadLatestGui">
                <method id="downloadLatestVersion" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isRelease" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="packageType" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/zip"/>
                    </response>
                </method>
            </resource>
            <resource path="/downloadClientFileNew">
                <method id="getClientFileNew" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isRelease" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="trpGuiVersion" style="header" type="xs:string"/>
                        <representation mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/zip"/>
                    </response>
                </method>
            </resource>
            <resource path="/bugReport">
                <method id="sendBugReport" name="POST">
                    <request>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/events">
                <method id="getEvents" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/downloadClientFile">
                <method id="getClientFile" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isRelease" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="libsMap" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="libsMap" style="header" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="trpGuiVersion" style="header" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/zip"/>
                    </response>
                </method>
            </resource>
            <resource path="/clientVersion">
                <method id="getLatestClientVersionInfo" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isRelease" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="packageType" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/serverVersion">
                <method id="showVersion" name="GET">
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/availableClientFiles">
                <method id="getAvailableFilesInfo" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isRelease" style="query" type="xs:boolean" default="true"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/p2pala">
            <resource path="/{collId}/train">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="trainP2PaLAModel" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/auth">
            <resource path="/login">
                <method id="login" name="POST">
                    <request>
                        <representation mediaType="application/x-www-form-urlencoded">
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="user" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pw" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="otp" style="query" type="xs:string"/>
                        </representation>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/details">
                <method id="getLogin" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/logout">
                <method id="logout" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/refresh">
                <method id="refresh" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/invalidate">
                <method id="invalidate" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/checkSession">
                <method id="checkSession" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/recognition">
            <resource path="/{collId}/{modelId}/text2Image">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int" default="-1"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="text2Image" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doNotDeleteWorkDir" style="query" type="xs:boolean" default="false"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/testSet">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getTestDocByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfTranscripts" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/list">
                <method id="listHtrPaged" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="prov" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="releaseLevel" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/atr">
                <method id="automaticTextRecognition" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="recognitionStartParameters" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="recognitionStartParameters" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="automaticTextRecognition" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{modelId}/htrCITlab">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="htrCITlab" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="dict" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tempDict" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doLinePolygonSimplification" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keepOriginalLinePolygons" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doStoreConfMats" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doStructures" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="allowConcurrentExecution" style="query" type="xs:boolean" default="false"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{modelId}/text2ImageMatching">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int" default="-1"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="text2Image" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doNotDeleteWorkDir" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="preserveLineOrder" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keepUnmatchedLines" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="useSourceLineFeeds" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="addNotMatchedTextInLastLine" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="useCurrentTranskript" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="allowDoubleMatching" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="reductionMethod" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="blockThresh" style="query" type="xs:float" default="0f"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="lineThresh" style="query" type="xs:float" default="0.45f"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="languageModel" style="query" type="xs:boolean" default="false"/>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/dicts">
                <method id="listDictsText" name="GET">
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/collections/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="listCollections" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/computeSample">
                <method id="computeSampleJob" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="parameters" mediaType="application/xml"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="parameters" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/t2iCITlab">
                <method id="citlabText2Image" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/ocr">
                <method id="runOcr" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="typeFace" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="language" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBlockSegOnly" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string" default="Legacy"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/trainSet">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getTrainDocByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfTranscripts" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/ocr/costs">
                <method id="getOcrCosts" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfPages" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBlockSegOnly" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string" default="Legacy"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="listHtr" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="prov" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/remove">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="removeHtrFromCollection" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/laTrainingCITlab">
                <method id="citlabLaTraining" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/tableTraining">
                <method id="tableTraining" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/errorRate">
                <method id="computeErrorRate" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ref" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="key" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="computeErrorRateViaJob" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="parameters" mediaType="application/xml"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="parameters" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getHtrById" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="deleteHtrById" name="DELETE">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="updateHtrById" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpHtr" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpHtr" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/htrTrainingCITlab">
                <method id="htrTrainCITlab" name="POST">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/add">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="addHtrToCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/trainData">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getTrainGtByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/computeWERTasas">
                <method id="computeWERTasas" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ref" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="key" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/la2Training">
                <method id="la2Training" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/validationData">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getValidationGtByHtrId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/computeWER">
                <method id="computeWER" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ref" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="key" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/costs">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getHtrCosts" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfPages" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writeKwsIndex" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{modelId}/trhtr">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int" default="-1"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="runTrHtrRecognition" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string" default="AUTO"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="allowConcurrentExecution" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doNotDeleteWorkDir" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doLinePolygonSimplification" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="useExistingLinePolygons" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="b2pBackend" style="query" type="xs:string" default="Legacy"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/uploads">
            <method id="createUploadMets" name="POST">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    <representation xmlns:ns2="http://www.loc.gov/METS/" element="ns2:mets" mediaType="application/xml"/>
                </request>
                <response>
                    <representation mediaType="application/xml"/>
                    <representation mediaType="application/json"/>
                </response>
            </method>
            <method id="createUploadDocStructure" name="POST">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentUploadDescriptor" mediaType="application/json"/>
                </request>
                <response>
                    <representation mediaType="application/xml"/>
                    <representation mediaType="application/json"/>
                </response>
            </method>
            <resource path="/{uploadId}/metadata">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploadId" style="template" type="xs:int"/>
                <method id="updateUploadMd" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpDocMetadata" mediaType="application/xml"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpDocMetadata" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/metadata/isad">
                <method id="bulkUpdateIsadMd" name="POST">
                    <request>
                        <representation mediaType="text/csv+isad"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="bulkUpdateIsadMd" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{uploadId}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploadId" style="template" type="xs:int"/>
                <method id="getStatus" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="uploadPage" name="PUT">
                    <request>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="deleteUploadData" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/metadata/documents">
                <method id="bulkUpdateDocMd" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="bulkUpdateDocMd" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpDocMetadata" mediaType="text/csv"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/s3">
                <method id="createS3Upload" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentUploadDescriptor" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/user">
            <resource path="/listTagDefs">
                <method id="getTagDefs" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/list">
                <method id="getUserList" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="user" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="firstName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="lastName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="exactMatch" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="caseSensitive" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="onlyActive" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}/storage">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getDocumentStorageStatsByUserId" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/tagDefs">
                <method id="updateTagDefs" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/findUser">
                <method id="findUser" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="user" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="firstName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="lastName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="exactMatch" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="caseSensitive" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/listMyDocs">
                <method id="listMyDocs" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="getAllDocsIfAdmin" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="setColls" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isStray" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="text/csv"/>
                    </response>
                </method>
            </resource>
            <resource path="/countMyDocs">
                <method id="countMyDocs" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="getAllDocsIfAdmin" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getUserById" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="deleteUserAccount" name="DELETE">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="initUserAccount" name="PUT">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/jobAcl">
                <method id="getJobAcl" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/isUserAllowedForJob">
                <method id="isUserAllowedForJob" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/stats">
                <method id="getUsageStats" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}/activity">
                <resource path="saves">
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                    <method id="getSaveActivity" name="GET">
                        <request>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="from" style="query" type="xs:long"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="to" style="query" type="xs:long"/>
                        </request>
                        <response>
                            <representation mediaType="application/json"/>
                        </response>
                    </method>
                </resource>
                <resource path="recognition">
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                    <method id="getRecognitionActivity" name="GET">
                        <request>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="from" style="query" type="xs:long"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="to" style="query" type="xs:long"/>
                        </request>
                        <response>
                            <representation mediaType="application/json"/>
                        </response>
                    </method>
                </resource>
            </resource>
        </resource>
        <resource path="/actions">
            <resource path="/list">
                <method id="getActions" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="typeId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pageId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="clientId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="start" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="end" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="mostRecentBy" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pagingWrapper" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="50"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/info">
                <method id="getInfo" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/count">
                <method id="countActions" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="typeId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pageId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="clientId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="start" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="end" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="mostRecentBy" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/admin">
            <resource path="/moveTableModel">
                <method id="moveTableModel" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="path" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="user/auth/{jobImpl}/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="template" type="xs:string"/>
                <method id="getUserNamesForJobImpl" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="jobLog/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:string"/>
                <method id="getJobLog" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="db" style="query" type="xs:string" default="trpProd"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="user/auth/{jobImpl}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="jobImpl" style="template" type="xs:string"/>
                <method id="authorizeUsersForJobImpl" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="reports/{reportType}/{reportTime}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="reportType" style="template" type="xs:string"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="reportTime" style="template" type="xs:string"/>
                <method id="getReports" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/moveFieldModel">
                <method id="moveFieldModel" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="path" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/index/models">
                <method id="rebuildModelsSolrIndex" name="POST">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/listActiveSessions">
                <method id="listActiveSessions" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/pylaia">
            <resource path="/{collId}/train">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="trainPyLaiaModel" name="POST">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{modelId}/recognition">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="decodePyLaia" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="languageModel" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="printedModelId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="printedLanguageModel" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doLinePolygonSimplification" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keepOriginalLinePolygons" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writeKwsIndex" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nBest" style="query" type="xs:int" default="1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="useExistingLinePolygons" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doStructures" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="batchSize" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="clearLines" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWordSeg" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="credits" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="allowConcurrentExecution" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doNotDeleteWorkDir" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="b2pBackend" style="query" type="xs:string" default="Legacy"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writeLineConfScore" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writeWordConfScores" style="query" type="xs:boolean" default="false"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/labels">
            <method id="getLabels" name="GET">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="assignedby" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                </request>
                <response>
                    <representation mediaType="application/json"/>
                </response>
            </method>
            <method id="createLabel" name="POST">
                <request>
                    <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="trpLabel" mediaType="application/json"/>
                </request>
                <response>
                    <representation mediaType="application/json"/>
                </response>
            </method>
            <resource path="/{labelId}/pages/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="replaceAllPageAssignments" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{labelId}/documents/all">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="template" type="xs:int"/>
                <method id="removeAllAssignments" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{labelId}/documents/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="replaceAllAssignments" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{labelId}/pages/all">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="template" type="xs:int"/>
                <method id="removeAllPageAssignments" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="updateLabel" name="POST">
                    <request>
                        <representation mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="deleteLabel" name="DELETE">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="force" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="getLabel" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{labelId}/documents">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="template" type="xs:int"/>
                <method id="createAssignments" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="removeAssignments" name="DELETE">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{labelId}/pages">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="template" type="xs:int"/>
                <method id="createPageLabelAssignments" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="removePageAssignments" name="DELETE">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="documentSelectionDescriptor" mediaType="application/json"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/collections">
            <method id="listCollections" name="GET">
                <request>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="excludeEmpty" style="query" type="xs:boolean" default="false"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="role" style="query" type="xs:string"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="favorites" style="query" type="xs:boolean"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:string"/>
                </request>
                <response>
                    <representation mediaType="application/json"/>
                    <representation mediaType="application/xml"/>
                </response>
            </method>
            <resource path="/{collId}/deleteEditDeclOption">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="deleteEditDeclOption" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/credits/creditTransactions">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCreditTransactionsByCollection" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/ingest">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocumentFromFtp" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="checkForDuplicateTitle" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDeleteImportSource" style="query" type="xs:boolean"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/storeEditDeclOption">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="postEditDeclOption" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/modifyCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="updateCollectionMd" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collName" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/addOrModifyUserInCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="addOrModifyUserInCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="role" style="query" type="xs:string" default="Transcriber"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sendMail" style="query" type="xs:boolean" default="true"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/fulldoc.xml">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getDocByIdAsXml" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfTranscripts" style="query" type="xs:int" default="-1"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/delete">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="deletePageTranscript" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="key" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/metadata">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="updateDocMd" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="getDocMdById" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/createDocFromMetsUrl">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocumentFromMetsUrl" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/plaintext">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="assignPlainTextToPage" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="note" style="query" type="xs:string" default=""/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="parent" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrIsPageId" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="toolName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="useExistingLayout" style="query" type="xs:boolean" default="false"/>
                        <representation mediaType="text/plain"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/upload">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocument" name="POST">
                    <request>
                        <representation mediaType="application/octet-stream"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="getTranscriptMdList" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/kwsSearch">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="doCitlabKws" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="query" style="query" type="xs:string"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="kwsParameters" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="kwsParameters" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/updateTranscript">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="syncDocumentWithXslxFromFtp" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/duplicate">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="duplicateDoc" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/list.xml">
                <method id="listCollectionsAsXml" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/uploadMultipart">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocumentMultipart" name="POST">
                    <request>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/listEditDeclFeats">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="listEditDeclFeatures" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/tagDefs">
                <method id="updateDefaultTagDefs" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/add">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="addPage" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/isLocked">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="opts" style="template" type="xs:boolean" default="true"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="isPageLocked" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/storeCrowdProjectMilestone">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="postCrowdProjectMilestone" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/storeCrowdProjectMessage">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="postCrowdProjectMessage" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/hideOnSites">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="updateHideOnSites" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="hideOnSites" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrIsPageId" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/createDocFromIiifUrl">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocumentFromIiifUrl" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/export">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="export" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWriteMets" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWriteImages" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doExportPageXml" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doExportAltoXml" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="splitIntoWordsInAltoXml" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWritePdf" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWriteTei" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWriteDocx" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWriteTagsXlsx" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWriteTablesXlsx" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doPdfImagesOnly" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doPdfImagesPlusText" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doPdfWithTextPages" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doPdfWithTags" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doTeiWithNoZones" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doTeiWithZonePerRegion" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doTeiWithZonePerLine" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doTeiWithZonePerWord" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doTeiWithLineTags" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doTeiWithLineBreaks" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxWithTags" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxPreserveLineBreaks" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxForcePageBreaks" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxMarkUnclear" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxKeepAbbrevs" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxExpandAbbrevs" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doDocxSubstituteAbbrevs" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doWordBased" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doBlackening" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="doCreateTitle" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="useVersionStatus" style="query" type="xs:string" default="Latest"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/recent/collections">
                <method id="getRecentCollections" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="10"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/transcriptIds">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getTranscriptIdsFromPagesStr" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="skipPagesWithMissingStatus" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/findDocuments">
                <method id="findDocuments" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="title" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="descr" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="author" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writer" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploaderId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploader" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="genre" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="language" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="hierarchy" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="authority" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="extId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="scriptType" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="createdfrom" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="createdto" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ultimestamp" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="includeNulls" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="exactMatch" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="caseSensitive" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="100"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pagingWrapper" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="text/csv"/>
                    </response>
                </method>
                <method id="findDocuments" name="POST">
                    <request>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="searchRequest" mediaType="application/json"/>
                        <ns2:representation xmlns:ns2="http://wadl.dev.java.net/2009/02" xmlns="" element="searchRequest" mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="text/csv"/>
                        <representation mediaType="text/csv+isad"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/metadata">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="getCustomPageMetadata" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/crowdProject">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCrowdProjectById" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/createDocFromMets">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocumentFromMets" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:string"/>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/storeCrowdProject">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="postCrowdProject" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/credits/history">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getAccountHistory" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="deleteDocument" name="DELETE">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="delete" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/credits">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCreditPackagesByCollection" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="minBalance" style="query" type="xs:double"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="includeExpired" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="onlyActive" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/addDocsToCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="addDocumentsToCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="moveTo" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/replacePage">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="replacePageImage" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/deleteEditDeclFeat">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="deleteEditDeclFeature" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/activity">
                <resource path="saves">
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                    <method id="getSaveActivity" name="GET">
                        <request>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="from" style="query" type="xs:long"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="to" style="query" type="xs:long"/>
                        </request>
                        <response>
                            <representation mediaType="application/json"/>
                        </response>
                    </method>
                </resource>
                <resource path="recognition">
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                    <method id="getRecognitionActivity" name="GET">
                        <request>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="from" style="query" type="xs:long"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="to" style="query" type="xs:long"/>
                        </request>
                        <response>
                            <representation mediaType="application/json"/>
                        </response>
                    </method>
                </resource>
            </resource>
            <resource path="/{collId}/metadata">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCollectionMdById" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="stats" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="updateCollectionMd" name="POST">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/pageIds">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getPageIdsFromPagesStr" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/fulldoc">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getDocById" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrOfTranscripts" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="stats" style="query" type="xs:boolean" default="true"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/credits/{id}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="addCreditPackageToCollection" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="removeCreditPackageFromCollection" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/iob">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createIobImport" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/listTagDefs">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getTagDefs" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="legacy" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/metadata/favorite">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="removeCollectionFavorite" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="setCollectionFavorite" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/stats">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCollStat" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/docStat">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getDocStatOld" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/users">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="addUserToCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sendMail" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="getUsersByCollection" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="role" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <resource path="/{userid}">
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                    <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="template" type="xs:int"/>
                    <method id="updateRoleOfUserInCollection" name="POST">
                        <request>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sendMail" style="query" type="xs:boolean" default="true"/>
                        </request>
                        <response>
                            <representation mediaType="application/json"/>
                            <representation mediaType="application/xml"/>
                        </response>
                    </method>
                    <method id="removeUserFromCollection" name="DELETE">
                        <response>
                            <representation mediaType="*/*"/>
                        </response>
                    </method>
                </resource>
            </resource>
            <resource path="/list">
                <method id="listCollections" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="empty" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/count">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="countDocsByCollectionId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploaderId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/tagDefs">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="updateTagDefs" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/deleteEmptyCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="deleteEmptyCollection" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/pages">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCollectionPagesFiltered" name="POST">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
                <method id="getCollectionPages" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="100"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/ead">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="eadMetadataImport" name="POST">
                    <request>
                        <representation mediaType="application/xml"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{userid}/listCols">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="template" type="xs:int"/>
                <method id="listCollectionsForUser" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="excludeEmpty" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="role" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/userlist">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="listUsersForCollection" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="role" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/export">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="export" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/count">
                <method id="countCollections" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="empty" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="filter" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/listLocks">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="listPageLocks" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="listDocsByCollectionId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploaderId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploader" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="title" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="author" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writer" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="description" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="genre" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="language" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="hierarchy" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="authority" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="extId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="scriptType" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="createdfrom" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="createdto" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ultimestamp" style="query" type="xs:long"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="includeNulls" style="query" type="xs:boolean"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:string" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pagingWrapper" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="text/csv"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/deleteProjectMilestones">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="deleteCrowdProjectMilestones" name="DELETE">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/list">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getDocMdById2" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="updateDocMd2" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/userStats">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getUsersInfoForCollection" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/editorialDeclaration">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getEditDeclByDoc" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="postEditDecl" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/count">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="countTranscriptMdList" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/storeEditDeclFeat">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="postEditDeclFeature" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/duplicate">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="duplicateDoc" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="name" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/{transcriptId}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="transcriptId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="updatePageStatus2" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="note" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrIsPageId" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/removeUserFromCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="removeUserFromCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/details">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getStorageUsageByCollectionId" name="GET">
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/countFindDocuments">
                <method id="countFindDocuments" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="title" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="descr" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="author" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writer" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="userid" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploaderId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="exactMatch" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="caseSensitive" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/userlist/count">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="countUsersForCollection" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="role" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/curr">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="getCurrTranscriptMd" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/removeDocFromCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="removeDocumentFromCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/collStat">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getCollStatOld" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/collections">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="listCollectionsByDocId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/createDocFromPdf">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="createDocumentFromPdf" name="POST">
                    <request>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/lock">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="lockPage" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="type" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/labels">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="listLabelsByCollectionId" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:string" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/text">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="postPageTranscript" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="note" style="query" type="xs:string" default=""/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="parent" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrIsPageId" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="toolName" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="getTranscript" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="deleteCollection" name="DELETE">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="force" style="query" type="xs:boolean"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/createCollection">
                <method id="createCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collName" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/listByName">
                <method id="listCollectionsByName" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="name" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/addDocToCollection">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="addDocumentToCollection" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="moveTo" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/recent">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="getRecentPages" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/mets">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getMets" name="GET">
                    <response>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/imageNames">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getImageNames" name="GET">
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
                <method id="movePagesFromImageNames" name="POST">
                    <request>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/recent/documents">
                <method id="getRecentDocuments" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="10"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/deleteProjectMessages">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="deleteCrowdProjectMessages" name="DELETE">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}/{transcriptId}/status">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="transcriptId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="updatePageStatus" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="note" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrIsPageId" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/canManage">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="canUserManageCollection" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/pages">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getPagesFromPagesStr" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pages" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="status" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ctStatus" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fileName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelUserId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelUserName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="recognitionType" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="clientId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="clientName" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="modelType" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="labelId" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="hideOnSites" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="-1"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="pagingWrapper" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="skipPagesWithMissingStatus" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/hasAffiliation">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="hasMainCollection" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/list.xml">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="listDocsByCollectionIdXML" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="isDeleted" style="query" type="xs:string" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/stats">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <method id="getDocStats" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/{id}/{page}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="page" style="template" type="xs:int"/>
                <method id="deletePage" name="DELETE">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="getPage" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
                <method id="movePage" name="POST">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="moveTo" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="moveToDocId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nrIsPageId" style="query" type="xs:boolean" default="false"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/findDocuments_old">
                <method id="findDocuments" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="title" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="descr" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="author" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="writer" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="id" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="uploaderId" style="query" type="xs:int"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="exactMatch" style="query" type="xs:boolean" default="true"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="caseSensitive" style="query" type="xs:boolean" default="false"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="100"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="text/csv"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/eLearning">
            <resource path="/{collId}/unsubscribe">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="unsubscribe" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/list">
                <method id="listCollections" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="index" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="nValues" style="query" type="xs:int" default="0"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortColumn" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="sortDirection" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/count">
                <method id="countCollections" name="GET">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/{collId}/subscribe">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="collId" style="template" type="xs:int"/>
                <method id="subscribe" name="POST">
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="/system">
            <resource path="/filestore/{storeId}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="storeId" style="template" type="xs:int" default="1"/>
                <method id="getFilestoreConfig" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/fimagestore">
                <method id="getFImagestore" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                        <representation mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/db">
                <method id="db" name="GET">
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
        </resource>
    </resources>
</application>
