Classifications
Overview
Classifications are metadata that describe the codes and categories that variables use, they help to explain what the data means. Classifications can be vary in size, from just a few codes to hundreds of thousands of them. Because of the potential complexity and large size of them they can often be hard to manage. Rich Data Services aims to keep classifications as simple as possible, and provides methods to paginate and sort the codes of the classifications to keep what is traveling over the network small and efficient.
Retrieving a Classification
Classifications can be retrieved together or individually. To retrieve a group of classifications that are being used by a specific data source:
http://{host}/rds/api/catalog/{collection}/{view}/classifications
Paginating a Classification
Classifications can be paginated using the limit and offset parameters to specify the subset desired.
http://{host}/rds/api/catalog/{collection}/{view}/classifications?limit=1&offset=1
Sorting a Group of Classifications
In addition to paginating classifications, they can also be sorted by their ID. Adding the sort parameter with either a value of ASC or DESC will result in sorted classifications.
http://{host}/rds/api/catalog/{collection}/{view}/classifications?sort=DESC