GET | /tender/{tenderid}/user/{userid}/round/{tenderroundid}/supplementary/{supplementaryid}/documenttype |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class BrowseSupplementaryDocumentType : SupplementaryBase(), IGet
{
}
open class SupplementaryBase : TenderUserTenderRoundBase()
{
var SupplementaryId:Int? = null
}
open class TenderUserTenderRoundBase
{
var TenderId:Int? = null
var UserId:Int? = null
var TenderRoundId:Int? = null
}
open class BrowseSupplementaryDocumentTypeResponse : ResponseBase()
{
var DocumentTypes:ArrayList<SupplementaryDocumentTypeSimple> = ArrayList<SupplementaryDocumentTypeSimple>()
}
open class ResponseBase
{
var ResponseStatus:ResponseStatus? = null
}
open class SupplementaryDocumentTypeSimple
{
var Id:Int? = null
var DocumentType:String? = null
var Direction:SupplementaryFileDirection? = null
}
enum class SupplementaryFileDirection(val value:Int)
{
@SerializedName("0") Request(0),
@SerializedName("1") Response(1),
}
Kotlin BrowseSupplementaryDocumentType 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /tender/{tenderid}/user/{userid}/round/{tenderroundid}/supplementary/{supplementaryid}/documenttype HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"DocumentTypes":[{"Id":0,"DocumentType":"String","Direction":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}