getDocumentationVersion method

Future<DocumentationVersion> getDocumentationVersion({
  1. required String documentationVersion,
  2. required String restApiId,
})

May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter documentationVersion : Required The version identifier of the to-be-retrieved documentation snapshot.

Parameter restApiId : Required The string identifier of the associated RestApi.

Implementation

Future<DocumentationVersion> getDocumentationVersion({
  required String documentationVersion,
  required String restApiId,
}) async {
  ArgumentError.checkNotNull(documentationVersion, 'documentationVersion');
  ArgumentError.checkNotNull(restApiId, 'restApiId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/documentation/versions/${Uri.encodeComponent(documentationVersion)}',
    exceptionFnMap: _exceptionFns,
  );
  return DocumentationVersion.fromJson(response);
}