POST | /v1/UpdateAgencyMulesoftQueueState | Update agency mulesoft queue state |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Agency.Orchestration.API.ServiceModel.MulesoftLambdaQueue
Imports Mercedes.Agency.API.Shared.POCO.AgencyMulesoftQueue
Imports Mercedes.Agency.API.Shared.Enums
Namespace Global
Namespace Mercedes.Agency.API.Shared.Enums
Public Enum QueueStateChanged
Enabled = 1
Disabled = 2
End Enum
End Namespace
Namespace Mercedes.Agency.API.Shared.POCO.AgencyMulesoftQueue
Public Partial Class AgencyMulesoftStatusResponse
Public Overridable Property Status As Boolean
Public Overridable Property MessageCount As Integer?
Public Overridable Property LastModified As String
End Class
Public Partial Class UpdateAgencyMulesoftQueue
Public Overridable Property StatusChanged As QueueStateChanged
Public Overridable Property DisabledReason As String
Public Overridable Property GasId As String
End Class
Public Partial Class UpdateAgencyMulesoftQueueStateResponse
Inherits AgencyMulesoftStatusResponse
End Class
End Namespace
Namespace Mercedes.Agency.Orchestration.API.ServiceModel.MulesoftLambdaQueue
Public Partial Class UpdateAgencyMulesoftQueueState
Inherits UpdateAgencyMulesoftQueue
Implements IGet
End Class
End Namespace
End Namespace
VB.NET UpdateAgencyMulesoftQueueState DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/UpdateAgencyMulesoftQueueState HTTP/1.1
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"StatusChanged":"Enabled","DisabledReason":"String","GasId":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Status":false,"MessageCount":0,"LastModified":"String"}