ServiceStack Home (Live)

<back to all web services

GetRepoArchive

The following routes are available for this service:
All Verbs/archive/{User}/{Repo}
GET/GetRepoArchive
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports MyApp.ServiceInterface

Namespace Global

    Namespace MyApp.ServiceInterface

        Public Partial Class GetRepoArchive
            <Validate(Validator:="NotEmpty")>
            Public Overridable Property User As String

            <Validate(Validator:="NotEmpty")>
            Public Overridable Property Repo As String

            Public Overridable Property Name As String
            Public Overridable Property Tag As String
            Public Overridable Property Okai As String
            Public Overridable Property Mix As String()
        End Class
    End Namespace
End Namespace

VB.NET GetRepoArchive 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 /archive/{User}/{Repo} HTTP/1.1 
Host: account.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	user: String,
	repo: String,
	name: String,
	tag: String,
	okai: String,
	mix: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

(byte[])