namespace BlazorDiffusion.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type AlbumRef() =
member val RefId:String = null with get,set
member val OwnerId:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Slug:String = null with get,set
member val Description:String = null with get,set
member val Tags:ResizeArray<String> = null with get,set
member val PrimaryArtifactRef:String = null with get,set
member val ArtifactsCount:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type GetAlbumRefsResponse() =
member val Results:ResizeArray<AlbumRef> = null with get,set
[<AllowNullLiteral>]
type GetAlbumRefs() =
class end
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.
POST /csv/reply/GetAlbumRefs HTTP/1.1
Host: blazordiffusion.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"results":[{"refId":"String","ownerId":0,"name":"String","slug":"String","description":"String","tags":["String"],"primaryArtifactRef":"String","artifactsCount":0}]}