GET | /tender/{tenderid}/file |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class BrowseAllTenderFile : IGet
{
var TenderId:Int? = null
}
open class BrowseAllTenderFileResponse : ResponseBase()
{
var TenderFiles:ArrayList<TenderFileDetails> = ArrayList<TenderFileDetails>()
}
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
}
Kotlin BrowseAllTenderFile DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /tender/{tenderid}/file HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { TenderFiles: [ { 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 } } }