listSchemas method
List the schemas.
May throw ServiceUnavailableException. May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException.
Parameter registryName
:
The name of the registry.
Parameter nextToken
:
The token that specifies the next page of results to return. To request
the first page, leave NextToken empty. The token will expire in 24 hours,
and cannot be shared with other accounts.
Parameter schemaNamePrefix
:
Specifying this limits the results to only those schema names that start
with the specified prefix.
Implementation
Future<ListSchemasResponse> listSchemas({
required String registryName,
int? limit,
String? nextToken,
String? schemaNamePrefix,
}) async {
ArgumentError.checkNotNull(registryName, 'registryName');
final $query = <String, List<String>>{
if (limit != null) 'limit': [limit.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (schemaNamePrefix != null) 'schemaNamePrefix': [schemaNamePrefix],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/registries/name/${Uri.encodeComponent(registryName)}/schemas',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListSchemasResponse.fromJson(response);
}