Portal

<back to all web services

BrowseContractVersionByVeoliaAdmin

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
GET/contractversion/{contractversionid}
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 ContractDocumentType
            Draft = 0
            Comment = 1
        End Enum

        Public Enum ReviewStatus
            Draft = 0
            Commented = 1
            Accepted = 2
        End Enum
    End Namespace

    Namespace Portal.ServiceDto

        Public Partial Class BrowseContractVersionByVeoliaAdmin
            Implements IGet
            Public Overridable Property ContractVersionId As Integer
        End Class

        Public Partial Class BrowseContractVersionByVeoliaAdminResponse
            Inherits ResponseBase
            Public Overridable Property ContractVersion As ContractVersionDetailsExtended
        End Class

        Public Partial Class BrowseFileResponseBase
            Public Overridable Property Id As Integer
            Public Overridable Property FileContentId As Integer
            Public Overridable Property FileName As String
            Public Overridable Property Size As Long
        End Class

        Public Partial Class ContractFileSimple
            Inherits BrowseFileResponseBase
            Public Overridable Property ContractVersionId As Integer
            Public Overridable Property DocumentType As ContractDocumentType
        End Class

        Public Partial Class ContractVersionDetails
            Inherits ContractVersionSimple
            Public Sub New()
                Meta = New Dictionary(Of String, String)
                ContractFiles = New List(Of ContractFileSimple)
            End Sub

            Public Overridable Property Meta As Dictionary(Of String, String)
            Public Overridable Property ViewingDateTime As Nullable(Of Date)
            Public Overridable Property ReviewingDateTime As Nullable(Of Date)
            Public Overridable Property ContractFiles As List(Of ContractFileSimple)
        End Class

        Public Partial Class ContractVersionDetailsExtended
            Inherits ContractVersionDetails
            Public Overridable Property TenderId As Nullable(Of Integer)
            Public Overridable Property UserId As Nullable(Of Integer)
            Public Overridable Property TenderUserId As Nullable(Of Integer)
            Public Overridable Property SupplierUserId As Integer
        End Class

        Public Partial Class ContractVersionSimple
            Public Overridable Property Id As Integer
            Public Overridable Property ContractId As Integer
            Public Overridable Property Version As Integer
            Public Overridable Property IsViewed As Boolean
            Public Overridable Property Status As ReviewStatus
        End Class

        Public Partial Class ResponseBase
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET BrowseContractVersionByVeoliaAdmin 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.

GET /contractversion/{contractversionid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ContractVersion":{"TenderId":0,"UserId":0,"TenderUserId":0,"SupplierUserId":0,"Meta":{"String":"String"},"ViewingDateTime":"0001-01-01T00:00:00.0000000","ReviewingDateTime":"0001-01-01T00:00:00.0000000","ContractFiles":[{"ContractVersionId":0,"DocumentType":0,"Id":0,"FileContentId":0,"FileName":"String","Size":0}],"Id":0,"ContractId":0,"Version":0,"IsViewed":false,"Status":0},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}