tvpl.api

<back to all web services

UpdateCategoryOrderListRequest

Requires Authentication
Required role:super-admin
The following routes are available for this service:
POST/category/update-order-list
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports tvpl.api.ServiceModel
Imports tvpl.data.Constant

Namespace Global

    Namespace tvpl.api.ServiceModel

        Public Partial Class CategoriesOrderList
            Public Overridable Property Id As Integer
            Public Overridable Property SortOrder As Integer
        End Class

        Public Partial Class CreateCategoryResponse
            Implements IResponseRequest
            Public Overridable Property Id As Long
            Public Overridable Property Code As Integer
            Public Overridable Property Message As String
        End Class

        Public Partial Class UpdateCategoryOrderListRequest
            Public Sub New()
                OrderList = New List(Of CategoriesOrderList)
            End Sub

            Public Overridable Property Type As CategoryTypes
            Public Overridable Property OrderList As List(Of CategoriesOrderList)
        End Class
    End Namespace

    Namespace tvpl.data.Constant

        Public Enum CategoryTypes
            Department
            PartyGroup
            DocGroup
            DocType
            IssuingAgency
            Status
            Subjects
            Workflow
        End Enum
    End Namespace
End Namespace

VB.NET UpdateCategoryOrderListRequest DTOs

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

HTTP + CSV

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

POST /category/update-order-list HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"type":"Department","orderList":[{"id":0,"sortOrder":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0,"code":0,"message":"String"}