| GET | /api/receivingAdvice/type/{Type} | Get paged ReceivingAdvice response by ReceivingAdvice type |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
/**
* Receiving Advice
*/
@Api(Description="Receiving Advice")
@ApiResponse(Description="Paged ReceivingAdvice response by ReceivingAdvice type", IsDefaultResponse=true, StatusCode=200)
open class GetReceivingAdviceByType
{
/**
* Not used
*/
@ApiMember(Description="Not used")
open var searchTerm:String? = null
/**
* Requested page number, starting at 1
*/
@ApiMember(Description="Requested page number, starting at 1")
open var requestedPage:Int? = null
/**
* Number of records to return on a page
*/
@ApiMember(Description="Number of records to return on a page")
open var numberOfRecordsPerPage:Int? = null
/**
* ReceivingAdvice type to be returned
*/
@ApiMember(Description="ReceivingAdvice type to be returned", ExcludeInSchema=true, ParameterType="path")
@SerializedName("type") open var Type:String? = null
}
open class PagedQueryResult<T>
{
open var startIndex:Long? = null
open var endIndex:Long? = null
open var numberOfRecordsReturned:Int? = null
open var totalNumberOfPages:Int? = null
open var totalNumberOfRecords:Long? = null
open var results:ArrayList<ResultItem<ClaimMessage>> = ArrayList<ResultItem<ClaimMessage>>()
}
Kotlin GetReceivingAdviceByType DTOs
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.
GET /api/receivingAdvice/type/{Type} HTTP/1.1
Host: stf-api-uat.data-xchange.co.za
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
startIndex: 0,
endIndex: 0,
numberOfRecordsReturned: 0,
totalNumberOfPages: 0,
totalNumberOfRecords: 0,
results:
[
{
}
]
}