Portal

<back to all web services

BrowseContractVersionByVeoliaAdmin

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
GET/contractversion/{contractversionid}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class BrowseContractVersionByVeoliaAdmin : IGet
{
    var ContractVersionId:Int? = null
}

open class BrowseContractVersionByVeoliaAdminResponse : ResponseBase()
{
    var ContractVersion:ContractVersionDetailsExtended? = null
}

open class ResponseBase
{
    var ResponseStatus:ResponseStatus? = null
}

open class ContractVersionDetailsExtended : ContractVersionDetails()
{
    var TenderId:Int? = null
    var UserId:Int? = null
    var TenderUserId:Int? = null
    var SupplierUserId:Int? = null
}

open class ContractVersionDetails : ContractVersionSimple()
{
    var Meta:HashMap<String,String> = HashMap<String,String>()
    var ViewingDateTime:Date? = null
    var ReviewingDateTime:Date? = null
    var ContractFiles:ArrayList<ContractFileSimple> = ArrayList<ContractFileSimple>()
}

open class ContractVersionSimple
{
    var Id:Int? = null
    var ContractId:Int? = null
    var Version:Int? = null
    var IsViewed:Boolean? = null
    var Status:ReviewStatus? = null
}

enum class ReviewStatus(val value:Int)
{
    @SerializedName("0") Draft(0),
    @SerializedName("1") Commented(1),
    @SerializedName("2") Accepted(2),
}

open class ContractFileSimple : BrowseFileResponseBase()
{
    var ContractVersionId:Int? = null
    var DocumentType:ContractDocumentType? = null
}

open class BrowseFileResponseBase
{
    var Id:Int? = null
    var FileContentId:Int? = null
    var FileName:String? = null
    var Size:Long? = null
}

enum class ContractDocumentType(val value:Int)
{
    @SerializedName("0") Draft(0),
    @SerializedName("1") Comment(1),
}

Kotlin BrowseContractVersionByVeoliaAdmin 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.

GET /contractversion/{contractversionid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}