Class: SCIMMY.Messages.ListResponse
SCIM List Response Message
Description
Summary:
- Formats supplied service provider resources as ListResponse messages, handling pagination and sort when required.
Usage
Instantiate a new SCIM List Response Message with relevant details
new SCIMMY.Messages.ListResponse(request, paramsopt)
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request
|
Object
SCIMMY.Types.Schema[]
|
contents of the ListResponse message, or items to include in the list response |
||||||||||||
paramsopt
|
~ListConstraints
|
parameters for the list response (i.e. sort details, start index, and items per page) Properties
|
Properties:
Name | Type | Description |
---|---|---|
Resources
|
(Object|SCIMMY.Types.Schema)[]
|
resources included in the list response |
totalResults
|
Number
|
the total number of resources matching a given request |
startIndex
|
Number
|
index within total results that included resources start from |
itemsPerPage
|
Number
|
maximum number of items returned in this list response |
Type Definitions
ListConstraints
ListResponse sort and pagination constraints
- Type:
- {Object}
Properties:
Name | Type | Default | Description |
---|---|---|---|
sortByopt
|
String
|
|
the attribute to sort results by, if any |
sortOrderopt
|
String
|
|
the direction to sort results in, if sortBy is specified |
startIndexopt
|
Number
|
|
offset index that items start from |
countopt
|
Number
|
|
maximum number of items returned in this list response |