getDocumentationPart method
Gets a documentation part.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter documentationPartId :
The string identifier of the associated RestApi.
Parameter restApiId :
The string identifier of the associated RestApi.
Implementation
Future<DocumentationPart> getDocumentationPart({
required String documentationPartId,
required String restApiId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/documentation/parts/${Uri.encodeComponent(documentationPartId)}',
exceptionFnMap: _exceptionFns,
);
return DocumentationPart.fromJson(response);
}