using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BlazorDiffusion.ServiceModel;
namespace BlazorDiffusion.ServiceModel
{
public partial class AlbumRef
{
public virtual string RefId { get; set; }
public virtual int OwnerId { get; set; }
public virtual string Name { get; set; }
public virtual string Slug { get; set; }
public virtual string Description { get; set; }
public virtual List<string> Tags { get; set; } = [];
public virtual string PrimaryArtifactRef { get; set; }
public virtual int ArtifactsCount { get; set; }
}
public partial class GetAlbumRefs
{
}
public partial class GetAlbumRefsResponse
{
public virtual List<AlbumRef> Results { get; set; } = [];
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsonl/reply/GetAlbumRefs HTTP/1.1
Host: blazordiffusion.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"results":[{"refId":"String","ownerId":0,"name":"String","slug":"String","description":"String","tags":["String"],"primaryArtifactRef":"String","artifactsCount":0}]}