| All Verbs | /api/integration |
|---|
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<ApiResponse(Description="Track integration result")>]
[<AllowNullLiteral>]
type SaveIntegrationResponse() =
///<summary>
///Id of the Gateway Request
///</summary>
[<ApiMember(DataType="Guid", Description="Id of the Gateway Request", Name="IntegrationId", ParameterType="body")>]
member val IntegrationId:Guid = new Guid() with get,set
///<summary>
///Response Status
///</summary>
[<ApiMember(DataType="ResponseStatus", Description="Response Status", Name="ResponseStatus", ParameterType="body")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type IntegrationVersion() =
member val Major:Int32 = new Int32() with get,set
member val Minor:Int32 = new Int32() with get,set
member val Build:Int32 = new Int32() with get,set
member val Revision:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type IntegrationWinVersion() =
member val Name:String = null with get,set
member val Version:String = null with get,set
member val Build:Int32 = new Int32() with get,set
member val ServicePack:String = null with get,set
[<AllowNullLiteral>]
type IntegrationFileModel() =
member val index:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Content:String = null with get,set
member val ContentType:String = null with get,set
member val FileSizeKB:Int32 = new Int32() with get,set
member val BlobUri:String = null with get,set
member val CreatedDate:DateTime = new DateTime() with get,set
member val Notes:String = null with get,set
[<AllowNullLiteral>]
type SaveIntegration() =
///<summary>
///The integration reference ID which is the gateway packet id. If the value passed is empty, new packet record will be created.
///</summary>
[<ApiMember(DataType="Guid?", Description="The integration reference ID which is the gateway packet id. If the value passed is empty, new packet record will be created.", Name="IntegrationId", ParameterType="body")>]
member val IntegrationId:Guid = new Guid() with get,set
///<summary>
///Name or title of the integration
///</summary>
[<ApiMember(DataType="string", Description="Name or title of the integration", Name="Title", ParameterType="body")>]
member val Title:String = null with get,set
///<summary>
///Version information of the integration module.
///</summary>
[<ApiMember(DataType="IntegrationVersion", Description="Version information of the integration module.", Name="Version", ParameterType="body")>]
member val Version:IntegrationVersion = null with get,set
///<summary>
///User who requested the integration
///</summary>
[<ApiMember(DataType="string", Description="User who requested the integration", Name="User", ParameterType="body")>]
member val User:String = null with get,set
///<summary>
///Local computer where the integration is performed on
///</summary>
[<ApiMember(DataType="string", Description="Local computer where the integration is performed on", Name="LocalComputer", ParameterType="body")>]
member val LocalComputer:String = null with get,set
///<summary>
///Windows version information
///</summary>
[<ApiMember(DataType="IntegrationWinVersion", Description="Windows version information", Name="WinVersion", ParameterType="body")>]
member val WinVersion:IntegrationWinVersion = null with get,set
///<summary>
///Completed status of the integration
///</summary>
[<ApiMember(DataType="bool", Description="Completed status of the integration", Name="Completed", ParameterType="body")>]
member val Completed:Boolean = new Boolean() with get,set
///<summary>
///Status of the integration.
///</summary>
[<ApiMember(DataType="string", Description="Status of the integration.", Name="Status", ParameterType="body")>]
member val Status:String = null with get,set
///<summary>
///Start date and time of the integration.
///</summary>
[<ApiMember(DataType="DateTime", Description="Start date and time of the integration.", Name="StartTime", ParameterType="body")>]
member val StartTime:DateTime = new DateTime() with get,set
///<summary>
///End date and time of the integration.
///</summary>
[<ApiMember(DataType="DateTime", Description="End date and time of the integration.", Name="EndTime", ParameterType="body")>]
member val EndTime:DateTime = new DateTime() with get,set
///<summary>
///Settings XML being used in the integration.
///</summary>
[<ApiMember(DataType="IntegrationFileModel", Description="Settings XML being used in the integration.", Name="SettingsFile", ParameterType="body")>]
member val SettingsFile:IntegrationFileModel = null with get,set
///<summary>
///File (xml) containing the results of the integration
///</summary>
[<ApiMember(DataType="IntegrationFileModel", Description="File (xml) containing the results of the integration", Name="ResultsFile", ParameterType="body")>]
member val ResultsFile:IntegrationFileModel = null with get,set
///<summary>
///File (xml) containing the issues that were identified during integration
///</summary>
[<ApiMember(DataType="IntegrationFileModel", Description="File (xml) containing the issues that were identified during integration", Name="IssuesFile", ParameterType="body")>]
member val IssuesFile:IntegrationFileModel = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/integration HTTP/1.1
Host: production-eros-platform-apisubscription.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SaveIntegration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<Completed>false</Completed>
<EndTime>0001-01-01T00:00:00</EndTime>
<IntegrationId>00000000-0000-0000-0000-000000000000</IntegrationId>
<IssuesFile xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Causal.Common.Entity">
<d2p1:BlobUri>String</d2p1:BlobUri>
<d2p1:Content>String</d2p1:Content>
<d2p1:ContentType>String</d2p1:ContentType>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:FileSizeKB>0</d2p1:FileSizeKB>
<d2p1:Name>String</d2p1:Name>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:index>0</d2p1:index>
</IssuesFile>
<LocalComputer>String</LocalComputer>
<ResultsFile xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Causal.Common.Entity">
<d2p1:BlobUri>String</d2p1:BlobUri>
<d2p1:Content>String</d2p1:Content>
<d2p1:ContentType>String</d2p1:ContentType>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:FileSizeKB>0</d2p1:FileSizeKB>
<d2p1:Name>String</d2p1:Name>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:index>0</d2p1:index>
</ResultsFile>
<SettingsFile xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Causal.Common.Entity">
<d2p1:BlobUri>String</d2p1:BlobUri>
<d2p1:Content>String</d2p1:Content>
<d2p1:ContentType>String</d2p1:ContentType>
<d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
<d2p1:FileSizeKB>0</d2p1:FileSizeKB>
<d2p1:Name>String</d2p1:Name>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:index>0</d2p1:index>
</SettingsFile>
<StartTime>0001-01-01T00:00:00</StartTime>
<Status>String</Status>
<Title>String</Title>
<User>String</User>
<Version xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Causal.Common.Entity">
<d2p1:Build>0</d2p1:Build>
<d2p1:Major>0</d2p1:Major>
<d2p1:Minor>0</d2p1:Minor>
<d2p1:Revision>0</d2p1:Revision>
</Version>
<WinVersion xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eros.Causal.Common.Entity">
<d2p1:Build>0</d2p1:Build>
<d2p1:Name>String</d2p1:Name>
<d2p1:ServicePack>String</d2p1:ServicePack>
<d2p1:Version>String</d2p1:Version>
</WinVersion>
</SaveIntegration>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SaveIntegrationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
<IntegrationId>00000000-0000-0000-0000-000000000000</IntegrationId>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</SaveIntegrationResponse>