ChainSegment List [GET]
Operation
Information of the operation
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/segment
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | 0 | Unique identificator of the chain. |
offset | Integer | false | request parameter | 0 | Offset of the array of results. |
limit | Integer | false | request parameter | 10 | Limit of results. |
sort | string | false | request parameter | id | Property of the entity to sort by. |
sortMode | string | false | request parameter | asc | Mode of sorting. |
Example request
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/segment
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true | Description of the response of the success operation |
Entity
Field Type Required Description id int true Id of the ChainSegment code string true Code of the ChainSegment name string true Name of the ChainSegment order int true Order of the ChainSegment chainSegmentGroupId int true ChainSegment Group Id
Example response
{ "count": 19, "offset": 0, "limit": 10, "list": [ { "id": 1, "code": "HOME", "name": "House Account", "order": 16, "chainSegmentGroupId": 1 }, { "id": 2, "code": "FREE", "name": "Free of Charge", "order": 17, "chainSegmentGroupId": 2 }, { "id": 3, "code": "LEISU", "name": "Leisure", "order": 0, "chainSegmentGroupId": null } ] }