Blazor Diffusion

<back to all web services

GetAlbumRefs

Albums
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; } = [];
    }

}

C# GetAlbumRefs DTOs

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

HTTP + JSV

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

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

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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