GET | /api/applications | Get active Applications |
---|
namespace Hmx.Accounts.Models
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Application() =
member val Id:String = null with get,set
member val Name:String = null with get,set
member val Token:String = null with get,set
member val PurchaseUrl:String = null with get,set
member val IsActive:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type GetApplicationsResponse() =
member val Results:ResizeArray<Application> = new ResizeArray<Application>() with get,set
[<AllowNullLiteral>]
type GetApplications() =
member val IsActive:Nullable<Boolean> = new Nullable<Boolean>() with get,set
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.
GET /api/applications HTTP/1.1 Host: accounts.dev.healthmonix.com Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { results: [ { id: String, name: String, token: String, purchaseUrl: String, isActive: False } ] }