Blazor Diffusion

<back to all web services

GetAlbumRefs

Albums
import Foundation
import ServiceStack

public class GetAlbumRefs : Codable
{
    required public init(){}
}

public class GetAlbumRefsResponse : Codable
{
    public var results:[AlbumRef] = []

    required public init(){}
}

public class AlbumRef : Codable
{
    public var refId:String
    public var ownerId:Int
    public var name:String
    public var slug:String
    public var Description:String
    public var tags:[String] = []
    public var primaryArtifactRef:String
    public var artifactsCount:Int

    required public init(){}
}


Swift GetAlbumRefs DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetAlbumRefs HTTP/1.1 
Host: blazordiffusion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"results":[{"refId":"String","ownerId":0,"name":"String","slug":"String","description":"String","tags":["String"],"primaryArtifactRef":"String","artifactsCount":0}]}