WS-RESTRICTED_API Host [RESTRICTED_API] : D5290-staging

<back to all web services

document_forced

Document

Service de création de documents (OLD SCHOOL)

The following routes are available for this service:
GET/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}facture / commande
GET/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdGroupe}/{IdSociete}/{Year}/{Month}r99 : relevé mensuel de factures
import Foundation
import ServiceStack

/**
* Service de création de documents (OLD SCHOOL)
*/
// @Api(Description="Service de création de documents (OLD SCHOOL)")
public class document_forced : Codable
{
    /**
    * Basic Auth
    */
    // @ApiMember(DataType="string", Description="Basic Auth", IsRequired=true, Name="BasicAuth", ParameterType="path")
    public var basicAuth:String

    /**
    * mime-type
    */
    // @ApiMember(DataType="string", Description="mime-type", IsRequired=true, Name="MimeType", ParameterType="path")
    public var mimeType:String

    /**
    * document type
    */
    // @ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
    public var documentType:eapi_document_type_enum

    /**
    * n° entrepot
    */
    // @ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
    public var idEntrepot:Int

    /**
    * n° groupe
    */
    // @ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
    public var idGroupe:Int

    /**
    * n° client
    */
    // @ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
    public var idSociete:Int

    /**
    * n° document
    */
    // @ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
    public var idDocument:Int

    /**
    * année
    */
    // @ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
    public var year:Int

    /**
    * mois
    */
    // @ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
    public var month:Int

    public var document:document

    required public init(){}
}

public enum eapi_document_type_enum : String, Codable
{
    case facture
    case commande
    case r98
    case r99
    case balance
}

/**
* Service de création de documents
*/
// @Api(Description="Service de création de documents")
public class document : Codable
{
    /**
    * document type
    */
    // @ApiMember(DataType="string", Description="document type", IsRequired=true, Name="DocumentType", ParameterType="path")
    public var documentType:eapi_document_type_enum

    /**
    * n° entrepot
    */
    // @ApiMember(DataType="integer", Description="n° entrepot", IsRequired=true, Name="IdEntrepot", ParameterType="path")
    public var idEntrepot:Int

    /**
    * n° groupe
    */
    // @ApiMember(DataType="integer", Description="n° groupe", IsRequired=true, Name="IdGroupe", ParameterType="path")
    public var idGroupe:Int

    /**
    * n° client
    */
    // @ApiMember(DataType="integer", Description="n° client", IsRequired=true, Name="IdSociete", ParameterType="path")
    public var idSociete:Int

    /**
    * n° document
    */
    // @ApiMember(DataType="integer", Description="n° document", IsRequired=true, Name="IdDocument", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument}")
    public var idDocument:Int

    /**
    * année
    */
    // @ApiMember(DataType="integer", Description="année", IsRequired=true, Name="Year", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
    public var year:Int

    /**
    * mois
    */
    // @ApiMember(DataType="integer", Description="mois", IsRequired=true, Name="Month", ParameterType="path", Route="/document/{DocumentType}/{IdEntrepot}/{IdSociete}/{Year}/{Month}")
    public var month:Int

    required public init(){}
}


Swift document_forced DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /document_forced/{BasicAuth}/{MimeType}/{DocumentType}/{IdEntrepot}/{IdSociete}/{IdDocument} HTTP/1.1 
Host: milliet.io 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}