GET | /tender/{tenderid}/file/{tenderfileid} |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class BrowseTenderFile : IGet
{
var TenderId:Int? = null
var TenderFileId:Int? = null
}
open class BrowseTenderFileResponse : ResponseBase()
{
var TenderFile:TenderFileDetails? = null
}
open class ResponseBase
{
var ResponseStatus:ResponseStatus? = null
}
open class TenderFileDetails : BrowseFileResponseBase()
{
var TenderId:Int? = null
var DocumentType:String? = null
var IsTenderAnnouncement:Boolean? = null
}
open class BrowseFileResponseBase
{
var Id:Int? = null
var FileContentId:Int? = null
var FileName:String? = null
var Size:Long? = null
}
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.
GET /tender/{tenderid}/file/{tenderfileid} HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"TenderFile":{"TenderId":0,"DocumentType":"String","IsTenderAnnouncement":false,"Id":0,"FileContentId":0,"FileName":"String","Size":0},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}