| GET | /template-approval/list |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class TemplateApprovalList : ApiServiceRequest()
{
}
open class ApiServiceRequest : IServiceRequest, IHasApiKey, IHasDeviceInfo
{
/**
* The API Key required for authentication
*/
@ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
var apiKey:String? = null
/**
* Latitude of the user making this request
*/
@ApiMember(DataType="double", Description="Latitude of the user making this request")
var latitude:Double? = null
/**
* Longitude of the user making this request
*/
@ApiMember(DataType="double", Description="Longitude of the user making this request")
var longitude:Double? = null
}
open class TemplateApprovalListResponse : ApiServiceResponse()
{
var templates:ArrayList<TemplateApprovalListItem> = ArrayList<TemplateApprovalListItem>()
}
open class ApiServiceResponse : IServiceResponse
{
var description:String? = null
var heading:String? = null
var wasSuccessful:Boolean? = null
var modelState:Object? = null
}
open class TemplateApprovalListItem
{
var userCrmId:UUID? = null
var approvalDate:String? = null
var templateApprovalId:Int? = null
var approvalStatus:TemplateApprovalStatus? = null
var approvalStatusString:String? = null
var templateType:TemplateType? = null
var templateTypeString:String? = null
var templateName:String? = null
var systemUserName:String? = null
var templateChangeDetail:ArrayList<SectionSummary> = ArrayList<SectionSummary>()
var templateDetail:ArrayList<SectionSummary> = ArrayList<SectionSummary>()
var content:String? = null
}
enum class TemplateApprovalStatus(val value:Int)
{
@SerializedName("0") AwaitingApproval(0),
@SerializedName("1") Rejected(1),
@SerializedName("2") Approved(2),
}
enum class TemplateType(val value:Int)
{
@SerializedName("0") Introductory(0),
@SerializedName("1") Refresher(1),
}
open class SectionSummary
{
var title:SectionTitle? = null
var titleString:String? = null
var sectionId:Int? = null
var sectionName:String? = null
}
enum class SectionTitle(val value:Int)
{
@SerializedName("0") Welcome(0),
@SerializedName("1") Cochrane(1),
@SerializedName("2") Iconic(2),
@SerializedName("3") OurBestWork(3),
@SerializedName("4") RealityOfRisk(4),
@SerializedName("5") ProductRange(5),
@SerializedName("6") ProductDeployments(6),
@SerializedName("7") Industries(7),
@SerializedName("8") ClearVu(8),
@SerializedName("9") CaseStudies(9),
@SerializedName("10") Expertise(10),
@SerializedName("11") Media(11),
@SerializedName("12") ThankYou(12),
@SerializedName("13") ClearVuRange(13),
@SerializedName("14") Presentations(14),
@SerializedName("15") LegacyVideos(15),
}
Kotlin TemplateApprovalList 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 /template-approval/list HTTP/1.1 Host: cochraneplus-api-dev.happen.zone Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
templates:
[
{
}
],
description: String,
heading: String,
wasSuccessful: False,
modelState: {}
}