GET | /api/applications | Get active Applications |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Hmx.Accounts.ServiceModels
Imports Hmx.Accounts.Models
Namespace Global
Namespace Hmx.Accounts.Models
Public Partial Class Application
Public Overridable Property Id As String
Public Overridable Property Name As String
Public Overridable Property Token As String
Public Overridable Property PurchaseUrl As String
Public Overridable Property IsActive As Boolean
End Class
End Namespace
Namespace Hmx.Accounts.ServiceModels
Public Partial Class GetApplications
Public Overridable Property IsActive As Nullable(Of Boolean)
End Class
Public Partial Class GetApplicationsResponse
Public Sub New()
Results = New List(Of Application)
End Sub
Public Overridable Property Results As List(Of Application)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/applications HTTP/1.1 Host: accounts.dev.healthmonix.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"results":[{"id":"String","name":"String","token":"String","purchaseUrl":"String","isActive":false}]}