getContentTypes<T, K> method
- Map queryParameters
Fetches all Content Types from the Stack.
This call returns comprehensive information
of all the content types available in a particular stack in your account.
API Reference: https://www.contentstack.com/docs/developers/apis/content-delivery-api/#content-types
queryParameters
is query parameters for the content_types of type Map
returns list of content_types
Example:
final stack = contentstack.Stack(apiKey, deliveryToken, environment);
response = stack.getContentTypes(queryParameters);
Implementation
Future<T> getContentTypes<T, K>(Map queryParameters) {
final Uri uri = Uri.https(endpoint, '$apiVersion/content_types');
return _client.sendRequest<T, K>(uri);
}