Trendsic Platform Service

<back to all web services

RecordsSearchRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/records/search
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class RecordDto
            Public Overridable Property RecordId As Integer
            Public Overridable Property RecordKey As String
            Public Overridable Property Name As String
            Public Overridable Property SeriesId As Integer?
            Public Overridable Property SeriesKey As String
            Public Overridable Property Classification As String
            Public Overridable Property Format As String
            Public Overridable Property Phase As String
            Public Overridable Property TriggerDate As String
            Public Overridable Property Staged As Boolean
            Public Overridable Property HoldId As Integer?
            Public Overridable Property HoldKey As String
            Public Overridable Property OwnerName As String
            Public Overridable Property Branch As String
            Public Overridable Property Barcode As String
            Public Overridable Property LocJson As String
            Public Overridable Property MetaJson As String
            Public Overridable Property FilesJson As String
            Public Overridable Property VersionsJson As String
            Public Overridable Property RelatedJson As String
            Public Overridable Property DisposedJson As String
            Public Overridable Property CreatedLabel As String
            Public Overridable Property UpdatedLabel As String
            Public Overridable Property Lifecycle As String
            Public Overridable Property RetKind As String
            Public Overridable Property EligibleDate As String
            Public Overridable Property MonthsLeft As Integer
        End Class

        Public Partial Class RecordsSearchRequest
            Public Overridable Property Q As String
            Public Overridable Property Page As Integer
            Public Overridable Property PageSize As Integer
        End Class

        Public Partial Class RecordsSearchResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Records As List(Of RecordDto) = New List(Of RecordDto)
        End Class
    End Namespace
End Namespace

VB.NET RecordsSearchRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/records/search 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"}},"Records":[{"RecordId":0,"RecordKey":"String","Name":"String","SeriesId":0,"SeriesKey":"String","Classification":"String","Format":"String","Phase":"String","TriggerDate":"String","Staged":false,"HoldId":0,"HoldKey":"String","OwnerName":"String","Branch":"String","Barcode":"String","LocJson":"String","MetaJson":"String","FilesJson":"String","VersionsJson":"String","RelatedJson":"String","DisposedJson":"String","CreatedLabel":"String","UpdatedLabel":"String","Lifecycle":"String","RetKind":"String","EligibleDate":"String","MonthsLeft":0}]}