| GET, PUT, POST, DELETE | /{Workspace}/DiscreetDocumentSchema | ||
|---|---|---|---|
| GET, PUT POST, DELETE | /{Workspace}/DiscreetDocumentSchema/{Type} |
import java.math.*
import java.util.*
import net.servicestack.client.*
open class DiscreetDocumentSchema
{
var Workspace:String? = null
var Created:String? = null
var LastUpdated:String? = null
var Type:String? = null
var Name:String? = null
var Description:String? = null
var FieldDefs:ArrayList<DiscreetDocumentField> = ArrayList<DiscreetDocumentField>()
var Enabled:Boolean? = null
}
open class DiscreetDocumentField
{
var Key:String? = null
var Name:String? = null
var Description:String? = null
var DataType:String? = null
var Indexed:Boolean? = null
}
Kotlin DiscreetDocumentSchema 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.
POST /{Workspace}/DiscreetDocumentSchema HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
Created: String,
LastUpdated: String,
Type: String,
Name: String,
Description: String,
FieldDefs:
[
{
Key: String,
Name: String,
Description: String,
DataType: String,
Indexed: False
}
],
Enabled: False
}