ASH.ResourceLibrary.WebApi

<back to all web services

ResourceItemCompletionRequest

Requires Authentication
The following routes are available for this service:
GET/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}Retrieves all completion records of all types for the member and the given date range.
GET/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}Retrieves all completion records for the specified type and date range of the member.
GET/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}/{RetrievalAmount}Retrieves member completions based on date range and resource type. If no resource type is specified it will return all completions.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ASH.ResourceLibrary.Interfaces.ServiceModels
Imports ASH.ResourceLibrary.Interfaces.Models

Namespace Global

    Namespace ASH.ResourceLibrary.Interfaces.Models

        Public Partial Class ResourceItemCompletion
            Public Overridable Property ResourceCompletionId As Integer
            Public Overridable Property ResourceProgressId As Integer
            Public Overridable Property ProgressOnCompletion As Integer
            Public Overridable Property ResourceId As String
            Public Overridable Property ResourceName As String
            Public Overridable Property ResourceType As String
            Public Overridable Property CompletionDate As Date
        End Class
    End Namespace

    Namespace ASH.ResourceLibrary.Interfaces.ServiceModels

        Public Partial Class ResourceItemCompletionRequest
            Public Overridable Property MemberId As Integer
            Public Overridable Property StartDate As Date
            Public Overridable Property EndDate As Date
            Public Overridable Property ResourceType As String
            Public Overridable Property RetrievalAmount As Nullable(Of Integer)
        End Class

        Public Partial Class ResourceItemCompletionResponse
            Public Sub New()
                ResourceCompletions = New List(Of ResourceItemCompletion)
            End Sub

            Public Overridable Property MemberId As Integer
            Public Overridable Property StartDate As Date
            Public Overridable Property EndDate As Date
            Public Overridable Property TotalCompletions As Integer
            Public Overridable Property RetrievalAmount As Integer
            Public Overridable Property ResourceCompletions As List(Of ResourceItemCompletion)
        End Class
    End Namespace
End Namespace

VB.NET ResourceItemCompletionRequest DTOs

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

HTTP + CSV

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

GET /memberResourceCompletions/{MemberId}/{StartDate}/{EndDate} HTTP/1.1 
Host: resourcelibrary.api.ashcompanies.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"memberId":0,"startDate":"0001-01-01T00:00:00.0000000","endDate":"0001-01-01T00:00:00.0000000","totalCompletions":0,"retrievalAmount":0,"resourceCompletions":[{"resourceCompletionId":0,"resourceProgressId":0,"progressOnCompletion":0,"resourceId":"String","resourceName":"String","resourceType":"String","completionDate":"0001-01-01T00:00:00.0000000"}]}