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
Public Partial Class GetAlbumResults
Public Overridable Property Ids As List(Of Integer)
Public Overridable Property RefIds As List(Of String)
End Class
Public Partial Class GetAlbumResultsResponse
Public Overridable Property Results As List(Of AlbumResult) = New List(Of AlbumResult)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/GetAlbumResults HTTP/1.1
Host: blazordiffusion.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ids:
[
0
],
refIds:
[
String
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { results: [ { id: 0, name: String, slug: String, albumRef: String, ownerRef: String, primaryArtifactId: 0, score: 0, artifactIds: [ 0 ] } ] }