Required role: | VeoliaAdmin |
PUT | /tender/{tenderid} |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class EditTender : TenderBase(), IPut
{
var TenderId:Int? = null
}
open class TenderBase
{
var TenderIdentifier:String? = null
var TenderType:TenderType? = null
var Subject:String? = null
var ProcurementContact:String? = null
var ProcurementContactEmail:String? = null
var ProcurementContactPhone:String? = null
var ProfessionalContact:String? = null
var ProfessionalContactEmail:String? = null
var ProfessionalContactPhone:String? = null
var Result:String? = null
var Status:TenderStatus? = null
}
enum class TenderType(val value:Int)
{
@SerializedName("0") Private(0),
@SerializedName("1") Public(1),
}
enum class TenderStatus(val value:Int)
{
@SerializedName("0") FirstRound(0),
@SerializedName("1") SecondRound(1),
@SerializedName("2") ThirdRound(2),
@SerializedName("3") Successful(3),
@SerializedName("4") UnSuccessful(4),
@SerializedName("5") Revoked(5),
}
open class ModifyEntityResponse : ResponseBase()
{
var Id:Int? = null
}
open class ResponseBase
{
var ResponseStatus:ResponseStatus? = null
}
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.
PUT /tender/{tenderid} HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
TenderId: 0,
TenderIdentifier: String,
TenderType: 0,
Subject: String,
ProcurementContact: String,
ProcurementContactEmail: String,
ProcurementContactPhone: String,
ProfessionalContact: String,
ProfessionalContactEmail: String,
ProfessionalContactPhone: String,
Result: String,
Status: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Id: 0, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }