Required role: | VeoliaAdmin |
POST | /tender/admin |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Portal.ServiceDto
Imports Portal.Common
Namespace Global
Namespace Portal.Common
Public Enum FilterOperator
NotSet = 0
Equal = 1
Greater = 2
Less = 3
GreaterOrEqual = 4
LessOrEqual = 5
NotEqual = 6
IsNull = 7
IsNotNull = 8
Like = 9
NotLike = 10
Begins = 11
Ends = 12
In = 13
Between = 14
End Enum
Public Enum GridSortDirection
None = 0
Asc = 1
Desc = 2
End Enum
Public Partial Class GridViewColumnFilter
Public Overridable Property FieldName As String
Public Overridable Property FilterValue As String
Public Overridable Property [Operator] As FilterOperator
End Class
Public Partial Class GridViewColumnState
Public Overridable Property FieldName As String
Public Overridable Property SortDirection As GridSortDirection
End Class
Public Partial Class GridViewPagerState
Public Overridable Property SkipRowCount As Integer
Public Overridable Property PageRowCount As Integer
End Class
Public Partial Class GridViewState
Public Sub New()
ColumnFilters = New List(Of GridViewColumnFilter)
End Sub
Public Overridable Property ColumnState As GridViewColumnState
Public Overridable Property ColumnFilters As List(Of GridViewColumnFilter)
Public Overridable Property PagerState As GridViewPagerState
Public Overridable Property IsReturnCount As Boolean
End Class
Public Partial Class PaginationResult(Of TModel)
Public Sub New()
Items = New List(Of TModel)
End Sub
Public Overridable Property TotalRowCount As Integer
Public Overridable Property Items As List(Of TModel)
End Class
Public Enum ProcedureType
Competition = 0
Simplified = 1
End Enum
Public Enum TenderStatus
FirstRound = 0
SecondRound = 1
ThirdRound = 2
Successful = 3
UnSuccessful = 4
Revoked = 5
End Enum
Public Enum TenderType
Private = 0
Public = 1
End Enum
End Namespace
Namespace Portal.ServiceDto
Public Partial Class BrowseAllTenderAdmin
Inherits PaginationRequestBase
Implements IPost
End Class
Public Partial Class PaginationRequestBase
Implements IGridView
Public Overridable Property GridViewState As GridViewState
End Class
Public Partial Class PaginationResponse(Of TenderSimple)
Inherits ResponseBase
Public Overridable Property Result As PaginationResult(Of TenderSimple)
End Class
Public Partial Class ResponseBase
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class TenderSimple
Public Overridable Property TenderId As Integer
Public Overridable Property TenderIdentifier As String
Public Overridable Property ProcedureType As ProcedureType
Public Overridable Property Subject As String
Public Overridable Property TenderRoundName As String
Public Overridable Property SectionName As String
Public Overridable Property Deadline As Nullable(Of Date)
Public Overridable Property TenderType As TenderType
Public Overridable Property TenderStatus As TenderStatus
Public Overridable Property IsUnderPublish As Boolean
Public Overridable Property PublishStartDateTime As Nullable(Of Date)
Public Overridable Property PublishEndDateTime As Nullable(Of Date)
Public Overridable Property PublishedById As Nullable(Of Integer)
Public Overridable Property IsProcurementEnabled As Boolean
Public Overridable Property IsComplianceEnabled As Boolean
End Class
End Namespace
End Namespace
VB.NET BrowseAllTenderAdmin 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.
POST /tender/admin HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"GridViewState":{"ColumnState":{"FieldName":"String","SortDirection":0},"ColumnFilters":[{"FieldName":"String","FilterValue":"String","Operator":0}],"PagerState":{"SkipRowCount":0,"PageRowCount":0},"IsReturnCount":false}}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Result":{"TotalRowCount":0,"Items":[{"TenderId":0,"TenderIdentifier":"String","ProcedureType":0,"Subject":"String","Deadline":"0001-01-01T00:00:00.0000000","TenderType":0,"TenderStatus":0,"IsUnderPublish":false,"ProcurementContact":"String"}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}