Required role: | Manager |
DELETE | /coupons/{Id} |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
/**
* Delete a Coupon
*/
@ValidateRequest(Validator="HasRole(`Manager`)")
open class DeleteCoupon : IDeleteDb<Coupon>
{
open var id:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /coupons/{Id} HTTP/1.1 Host: blazor-gallery.servicestack.net Accept: text/jsonl