| GET | /api/projects/{ID} |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetProjectDetails
{
var ID:Int? = null
}
open class ProjectDetails
{
var ID:Int? = null
var GlobalID:UUID? = null
var Number:String? = null
var Name:String? = null
var Description1:String? = null
var Description2:String? = null
var Active:Boolean? = null
var CorrespondenceInternalCompanyID:Int? = null
var CorrespondenceInternalCompanyName:String? = null
var CorrespondenceInternalCompanyGlobalID:UUID? = null
var Postalcode:String? = null
var City:String? = null
var CountryID:Int? = null
var CountryGlobalID:UUID? = null
var CountryName:String? = null
var GeoLocation:String? = null
var AddressComplete:String? = null
var CategoryID:Int? = null
var CategoryDescription:String? = null
var CategoryGlobalID:UUID? = 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.
GET /api/projects/{ID} HTTP/1.1
Host: doapigw.baasbv.nl
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ID: 0,
Number: String,
Name: String,
Description1: String,
Description2: String,
Active: False,
CorrespondenceInternalCompanyID: 0,
CorrespondenceInternalCompanyName: String,
Postalcode: String,
City: String,
CountryID: 0,
CountryName: String,
GeoLocation: String,
AddressComplete: String,
CategoryID: 0,
CategoryDescription: String
}