<back to all web services

DeleteRecycleBinItem

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

public class DeleteRecycleBinItem : 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 DeleteRecycleBinItem 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.

DELETE /RestApi/recycle-bin/items/{id} HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv