BokaMera.API.Host

<back to all web services

ReplayVossErrorLog

Requires Authentication
Required role:superadmin
The following routes are available for this service:
POST/voss/errorlog/{Id}/replayRe-enqueue the Voss operation captured by a logged failure
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 VossErrorLogQueryResponse() = 
        member val Id:Int32 = new Int32() with get,set
        member val CompanyId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val TypeId:Int32 = new Int32() with get,set
        member val TypeName:String = null with get,set
        member val Source:Int32 = new Int32() with get,set
        member val SourceName:String = null with get,set
        member val Comments:String = null with get,set
        member val MetaData:String = null with get,set
        member val QueueName:String = null with get,set
        member val MessageType:String = null with get,set
        member val DeliveryCount:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val DeadLetterReason:String = null with get,set
        member val Resolved:Boolean = new Boolean() with get,set
        member val CreatedDate:DateTime = new DateTime() with get,set

    [<ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)>]
    [<AllowNullLiteral>]
    type ReplayVossErrorLog() = 
        ///<summary>
        ///VossErrorLog id to replay
        ///</summary>
        [<ApiMember(Description="VossErrorLog id to replay", IsRequired=true)>]
        member val Id:Int32 = new Int32() with get,set

F# ReplayVossErrorLog 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.

POST /voss/errorlog/{Id}/replay HTTP/1.1 
Host: api-staging.bookmore.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"CompanyId":"00000000-0000-0000-0000-000000000000","TypeId":0,"TypeName":"String","Source":0,"SourceName":"String","Comments":"String","MetaData":"String","QueueName":"String","MessageType":"String","DeliveryCount":0,"DeadLetterReason":"String","Resolved":false}