DELETE | /references/{CompanyId}/{OwnerId}/{ReferenceType} | Delete a reference with the reference type | Delete a reference |
---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class DeleteReferenceWithReferenceType
{
///<summary>
///The company id
///</summary>
[ApiMember(Description="The company id", IsRequired=true, ParameterType="path")]
public virtual Guid CompanyId { 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")]
public virtual Guid OwnerId { get; set; }
///<summary>
///Reference type of the reference
///</summary>
[ApiMember(Description="Reference type of the reference", ParameterType="path")]
public virtual string ReferenceType { get; set; }
}
public partial class ReferenceQueryResponse
{
public virtual Guid CompanyId { get; set; }
public virtual Guid Id { get; set; }
public virtual Guid OwnerId { get; set; }
public virtual string ReferenceType { get; set; }
public virtual int ReferenceTypeId { get; set; }
public virtual string ExternalData { get; set; }
public virtual DateTime Updated { get; set; }
public virtual DateTime Created { get; set; }
public virtual string CreatedBy { get; set; }
public virtual string UpdatedBy { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
C# DeleteReferenceWithReferenceType DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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: api.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl 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"}}}