| GET,POST,PUT,DELETE,OPTIONS | /v1/Project/Activities/{ProjectID} |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ProjectActivity() =
member val Id:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Type:String = null with get,set
member val Status:String = null with get,set
member val Note:String = null with get,set
member val DateAdded:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type ProjectActivitiesListResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val ProjectActivities:ResizeArray<ProjectActivity> = new ResizeArray<ProjectActivity>() with get,set
[<AllowNullLiteral>]
type ProjectActivitiesListRequest() =
member val ProjectID:Int32 = new Int32() with get,set
F# ProjectActivitiesListRequest 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 /v1/Project/Activities/{ProjectID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
ProjectActivities:
[
{
Id: 0,
Name: String,
Type: String,
Status: String,
Note: String,
DateAdded: 0001-01-01
}
]
}