| GET | /template-approval/list |
|---|
namespace WebService.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ApiServiceResponse() =
member val Description:String = null with get,set
member val Heading:String = null with get,set
member val WasSuccessful:Boolean = new Boolean() with get,set
member val ModelState:Object = null with get,set
type TemplateApprovalStatus =
| AwaitingApproval = 0
| Rejected = 1
| Approved = 2
type TemplateType =
| Introductory = 0
| Refresher = 1
type SectionTitle =
| Welcome = 0
| Cochrane = 1
| Iconic = 2
| OurBestWork = 3
| RealityOfRisk = 4
| ProductRange = 5
| ProductDeployments = 6
| Industries = 7
| ClearVu = 8
| CaseStudies = 9
| Expertise = 10
| Media = 11
| ThankYou = 12
| ClearVuRange = 13
| Presentations = 14
| LegacyVideos = 15
[<AllowNullLiteral>]
type SectionSummary() =
member val Title:SectionTitle = new SectionTitle() with get,set
member val TitleString:String = null with get,set
member val SectionId:Int32 = new Int32() with get,set
member val SectionName:String = null with get,set
[<AllowNullLiteral>]
type TemplateApprovalListItem() =
member val UserCrmId:Guid = new Guid() with get,set
member val ApprovalDate:String = null with get,set
member val TemplateApprovalId:Int32 = new Int32() with get,set
member val ApprovalStatus:TemplateApprovalStatus = new TemplateApprovalStatus() with get,set
member val ApprovalStatusString:String = null with get,set
member val TemplateType:TemplateType = new TemplateType() with get,set
member val TemplateTypeString:String = null with get,set
member val TemplateName:String = null with get,set
member val SystemUserName:String = null with get,set
member val TemplateChangeDetail:ResizeArray<SectionSummary> = new ResizeArray<SectionSummary>() with get,set
member val TemplateDetail:ResizeArray<SectionSummary> = new ResizeArray<SectionSummary>() with get,set
member val Content:String = null with get,set
[<AllowNullLiteral>]
type TemplateApprovalListResponse() =
inherit ApiServiceResponse()
member val Templates:ResizeArray<TemplateApprovalListItem> = new ResizeArray<TemplateApprovalListItem>() with get,set
[<AllowNullLiteral>]
type ApiServiceRequest() =
///<summary>
///The API Key required for authentication
///</summary>
[<ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)>]
member val ApiKey:String = null with get,set
///<summary>
///Latitude of the user making this request
///</summary>
[<ApiMember(DataType="double", Description="Latitude of the user making this request")>]
member val Latitude:Double = new Double() with get,set
///<summary>
///Longitude of the user making this request
///</summary>
[<ApiMember(DataType="double", Description="Longitude of the user making this request")>]
member val Longitude:Double = new Double() with get,set
[<AllowNullLiteral>]
type TemplateApprovalList() =
inherit ApiServiceRequest()
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: {}
}