Blazor Diffusion

<back to all web services

AdminUpdateArtifactCommentReport

Admin
Requires Authentication
Required role:Admin
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BlazorDiffusion.ServiceModel

Namespace Global

    Namespace BlazorDiffusion.ServiceModel

        <ValidateRequest(Validator:="IsAdmin")>
        Public Partial Class AdminUpdateArtifactCommentReport
            Implements IPatchDb(Of ArtifactCommentReport)
            Public Overridable Property Id As Integer
            Public Overridable Property PostReport As PostReport?
            Public Overridable Property Description As String
        End Class

        Public Partial Class ArtifactCommentReport
            Public Overridable Property Id As Long
            <References(GetType(ArtifactComment))>
            Public Overridable Property ArtifactCommentId As Integer

            Public Overridable Property AppUserId As Integer
            Public Overridable Property PostReport As PostReport
            Public Overridable Property Description As String
            Public Overridable Property CreatedDate As Date
        End Class

        Public Enum PostReport
            Offensive
            Spam
            Nudity
            Illegal
            Other
        End Enum
    End Namespace
End Namespace

VB.NET AdminUpdateArtifactCommentReport DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsonl/reply/AdminUpdateArtifactCommentReport HTTP/1.1 
Host: blazordiffusion.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":0,"postReport":"Offensive","description":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":0,"artifactCommentId":0,"appUserId":0,"postReport":"Offensive","description":"String","createdDate":"0001-01-01T00:00:00"}