All Verbs | /archive/{User}/{Repo} | ||
---|---|---|---|
GET | /GetRepoArchive |
namespace MyApp.ServiceInterface
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type GetRepoArchive() =
[<Validate(Validator="NotEmpty")>]
member val User:String = null with get,set
[<Validate(Validator="NotEmpty")>]
member val Repo:String = null with get,set
member val Name:String = null with get,set
member val Tag:String = null with get,set
member val Okai:String = null with get,set
member val Mix:String[] = null with get,set
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 /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[])