Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BlazorDiffusion.ServiceModel
Namespace Global
Namespace BlazorDiffusion.ServiceModel
Public Partial Class AlbumResult
Public Overridable Property Id As Integer
Public Overridable Property Name As String
Public Overridable Property Slug As String
Public Overridable Property AlbumRef As String
Public Overridable Property OwnerRef As String
Public Overridable Property PrimaryArtifactId As Integer?
Public Overridable Property Score As Integer
Public Overridable Property ArtifactIds As List(Of Integer) = New List(Of Integer)
End Class
'''<Summary>
'''Retrieve Albums containing at least one of creative Artifacts
'''</Summary>
Public Partial Class GetCreativesInAlbums
Implements IGet
Public Overridable Property CreativeId As Integer
End Class
Public Partial Class GetCreativesInAlbumsResponse
Public Overridable Property Results As List(Of AlbumResult) = New List(Of AlbumResult)
End Class
End Namespace
End Namespace
VB.NET GetCreativesInAlbums DTOs
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/GetCreativesInAlbums HTTP/1.1
Host: blazordiffusion.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"creativeId":0}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"results":[{"id":0,"name":"String","slug":"String","albumRef":"String","ownerRef":"String","primaryArtifactId":0,"score":0,"artifactIds":[0]}]}