| DELETE | /references/{CompanyId}/{OwnerId}/{ReferenceType} | Delete a reference with the reference type | Delete a reference |
|---|
namespace BokaMera.API.ServiceModel.Dtos
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ReferenceQueryResponse() =
member val CompanyId:Guid = new Guid() with get,set
member val Id:Guid = new Guid() with get,set
member val OwnerId:Guid = new Guid() with get,set
member val ReferenceType:String = null with get,set
member val ReferenceTypeId:Int32 = new Int32() with get,set
member val ExternalData:String = null with get,set
member val Updated:DateTime = new DateTime() with get,set
member val Created:DateTime = new DateTime() with get,set
member val CreatedBy:String = null with get,set
member val UpdatedBy:String = null with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type DeleteReferenceWithReferenceType() =
///<summary>
///The company id
///</summary>
[<ApiMember(Description="The company id", IsRequired=true, ParameterType="path")>]
member val CompanyId:Guid = new Guid() with get,set
///<summary>
///Internal Id of the reference. Example could be the Booking Id
///</summary>
[<ApiMember(Description="Internal Id of the reference. Example could be the Booking Id", ParameterType="path")>]
member val OwnerId:Guid = new Guid() with get,set
///<summary>
///Reference type of the reference
///</summary>
[<ApiMember(Description="Reference type of the reference", ParameterType="path")>]
member val ReferenceType:String = null with get,set
F# DeleteReferenceWithReferenceType DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /references/{CompanyId}/{OwnerId}/{ReferenceType} HTTP/1.1
Host: testapi.bokamera.se
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ReferenceType: String,
ReferenceTypeId: 0,
ExternalData: String,
CreatedBy: String,
UpdatedBy: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}