Pecuario.Backend

<back to all web services

GetBanners

The following routes are available for this service:
GET/api/v1/banners
import java.math.*
import java.util.*
import net.servicestack.client.*


open class GetBanners : IGet
{
}

open class GetBannersResponse : BaseResponse()
{
    var banners:ArrayList<AdBanner> = ArrayList<AdBanner>()
}

open class BaseResponse
{
    var status:Status? = null
}

open class Status
{
    var message:String? = null
    var statusCode:Int? = null
}

open class AdBanner
{
    var name:String? = null
    var image:String? = null
    var url:String? = null
}

Kotlin GetBanners 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.

GET /api/v1/banners HTTP/1.1 
Host: pecuario-backend.develsystems.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"banners":[{"name":"String","image":"String","url":"String"}]}