Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Classifications can be paginated using the limit and offset parameters to specify the subset desired.

Code Block
titlePaginating Classifications
http://{host}/rds/catalog/collection/datasource/classifications?limit=1&offset=1
Code Block
titleAll Classifications Paginated Output
collapsetrue
 {
    "classifications": {
        "resources": [
           {
                "id": "class2",
                "codes": {
                    "resources": [
                        {
                            "value": "1",
                            "label": "one"
                        },
                        {
                            "value": "2",
                            "label": "two"
                        }
                    ],
                    "info": {
                        "codeLimit": 100,
                        "codeOffset": 0,
                        "count": 2,
                        "moreCodes": false
                    }
                }
            }
		],
        "info": {
            "limit": 1,
            "offset": 1,
            "codeLimit": 100,
            "codeOffset": 0,
            "more": true,
            "count": 63
        }
    }
}
 

...