<back to all web services

RestoreRecycleBinItem

The following routes are available for this service:
PUT/RestApi/recycle-bin/items/{id}
import Foundation
import ServiceStack

public class RestoreRecycleBinItem : RecycelBinItemRequestBase
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class RecycelBinItemRequestBase : Codable
{
    public var id:String

    required public init(){}
}


Swift RestoreRecycleBinItem DTOs

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

HTTP + CSV

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

PUT /RestApi/recycle-bin/items/{id} HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{}