Required role: | VeoliaAdmin |
POST | /tender |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class AddTender : TenderBase(), IPost
{
var ProcedureType:ProcedureType? = 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),
}
enum class ProcedureType(val value:Int)
{
@SerializedName("0") Competition(0),
@SerializedName("1") Simplified(1),
}
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 .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.
POST /tender HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ProcedureType":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: application/json 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"}}}