<?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: 2.37.payara-p1 2022-11-15 16:44:16"/>
    <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: https://ws.danaconnect.com/api/contacts/rest/application.wadl?detail=true"/>
    <grammars/>
    <resources base="https://ws.danaconnect.com/api/contacts/rest/">
        <resource path="mobile_api">
            <resource path="/config">
                <method id="mobile_config" name="GET">
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/conversation/{conversationid}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="conversationid" style="template" type="xs:int"/>
                <method id="mobile_startConversation" name="POST">
                    <request>
                        <representation mediaType="application/x-www-form-urlencoded">
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="idrow" style="query" type="xs:int"/>
                        </representation>
                    </request>
                    <response>
                        <representation mediaType="application/json;charset=UTF-8"/>
                    </response>
                </method>
            </resource>
            <resource path="/tables">
                <method id="mobile_listTables" name="GET">
                    <request>
                        <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="limit" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="category" style="query" type="xs:int" default="0"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/conversation/{conversationid}/contactid/{contactid}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="contactid" style="template" type="xs:int"/>
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="conversationid" style="template" type="xs:int"/>
                <method id="mobile_historyConversation" name="GET">
                    <request>
                        <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="limit" style="query" type="xs:int" default="10"/>
                    </request>
                    <response>
                        <representation mediaType="application/json;charset=UTF-8"/>
                    </response>
                </method>
            </resource>
            <resource path="/table/{tableid}/conversations">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tableid" style="template" type="xs:int"/>
                <method id="mobile_tableConversations" name="GET">
                    <request>
                        <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="limit" style="query" type="xs:int" default="10"/>
                    </request>
                    <response>
                        <representation mediaType="application/json;charset=UTF-8"/>
                    </response>
                </method>
            </resource>
            <resource path="/table/{tableid}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tableid" style="template" type="xs:int"/>
                <method id="mobile_tablePage" name="GET">
                    <request>
                        <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="limit" style="query" type="xs:int" default="10"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="searchtext" style="query" type="xs:string"/>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fieldSearch" style="query" type="xs:int"/>
                    </request>
                    <response>
                        <representation mediaType="application/json;charset=UTF-8"/>
                    </response>
                </method>
                <method id="mobile_deleteContact" name="DELETE">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="idrow" style="query" type="xs:long"/>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
                <method id="mobile_addContact" name="POST">
                    <request>
                        <representation mediaType="application/x-www-form-urlencoded">
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="record" style="query" type="xs:string"/>
                        </representation>
                    </request>
                    <response>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
        <resource path="webdb">
            <resource path="/table/{tableCode}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tableCode" style="template" type="xs:string"/>
                <method id="uploadFile" name="POST">
                    <request>
                        <representation mediaType="multipart/form-data"/>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/token">
                <method id="getToken" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Origin" style="header" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="text/plain"/>
                    </response>
                </method>
            </resource>
            <resource path="/resource">
                <method id="resource" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="token" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/authorize">
                <method id="authorizeUser" name="GET">
                    <request>
                        <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="code" style="query" type="xs:string"/>
                    </request>
                    <response>
                        <representation mediaType="*/*"/>
                    </response>
                </method>
            </resource>
            <resource path="/s3table/{tableCode}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="tableCode" style="template" type="xs:string"/>
                <method id="uploadS3File" name="POST">
                    <request>
                        <representation mediaType="application/x-www-form-urlencoded">
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="separator" style="query" type="xs:string" default=","/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="delimiter" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="includeHeaders" style="query" type="xs:boolean" default="false"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="operationType" style="query" type="xs:string" default="INSALL"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="encodingType" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keyField" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fieldsCode" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="strict" style="query" type="xs:boolean" default="true"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="rutas3" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="callbackURL" style="query" type="xs:string"/>
                        </representation>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
            <resource path="/s3table/id/{idWebdb}">
                <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="idWebdb" style="template" type="xs:long"/>
                <method id="uploadS3FileByID" name="POST">
                    <request>
                        <representation mediaType="application/x-www-form-urlencoded">
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="separator" style="query" type="xs:string" default=","/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="delimiter" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="includeHeaders" style="query" type="xs:boolean" default="false"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="operationType" style="query" type="xs:string" default="INSALL"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="encodingType" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="keyField" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="fieldsCode" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="strict" style="query" type="xs:boolean" default="true"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="rutas3" style="query" type="xs:string"/>
                            <param xmlns:xs="http://www.w3.org/2001/XMLSchema" name="callbackURL" style="query" type="xs:string"/>
                        </representation>
                    </request>
                    <response>
                        <representation mediaType="application/xml"/>
                        <representation mediaType="application/json"/>
                    </response>
                </method>
            </resource>
        </resource>
    </resources>
</application>
