| GET,OPTIONS | /v1/projects/{ProjectID}/closeout |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class CloseoutItem
{
public virtual int CloseoutItemID { get; set; }
public virtual Guid CloseoutItemUID { get; set; }
public virtual int ProjectID { get; set; }
public virtual string ItemKey { get; set; }
public virtual string Label { get; set; }
public virtual string Detail { get; set; }
public virtual string Status { get; set; }
public virtual bool IsApplicable { get; set; }
public virtual int SortOrder { get; set; }
public virtual DateTime? CompletedAt { get; set; }
public virtual string CompletedBy { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime? CreatedAt { get; set; }
public virtual DateTime? UpdatedAt { get; set; }
}
public partial class CloseoutListRequest
{
public virtual int ProjectID { get; set; }
}
public partial class CloseoutListResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual int ProjectID { get; set; }
public virtual List<CloseoutItem> Items { get; set; } = [];
public virtual CloseoutStatus Status { get; set; }
}
public partial class CloseoutStatus
{
public virtual int ProjectID { get; set; }
public virtual int TotalItems { get; set; }
public virtual int DoneCount { get; set; }
public virtual int OutstandingCount { get; set; }
public virtual bool AllClear { get; set; }
public virtual decimal RetainageAmount { get; set; }
public virtual bool RetainageReleased { get; set; }
public virtual int? ReleasedPayApplicationID { get; set; }
public virtual int? ReleasedInvoiceID { get; set; }
public virtual DateTime? ReleasedAt { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/projects/{ProjectID}/closeout HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Items":[{"CloseoutItemID":0,"CloseoutItemUID":"00000000000000000000000000000000","ProjectID":0,"ItemKey":"String","Label":"String","Detail":"String","Status":"String","IsApplicable":false,"SortOrder":0,"CompletedAt":"0001-01-01T00:00:00.0000000","CompletedBy":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Status":{"ProjectID":0,"TotalItems":0,"DoneCount":0,"OutstandingCount":0,"AllClear":false,"RetainageAmount":0,"RetainageReleased":false,"ReleasedPayApplicationID":0,"ReleasedInvoiceID":0,"ReleasedAt":"0001-01-01T00:00:00.0000000"}}