getDocumentationPart method

Future<DocumentationPart> getDocumentationPart({
  1. required String documentationPartId,
  2. required String restApiId,
})

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

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

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

Implementation

Future<DocumentationPart> getDocumentationPart({
  required String documentationPartId,
  required String restApiId,
}) async {
  ArgumentError.checkNotNull(documentationPartId, 'documentationPartId');
  ArgumentError.checkNotNull(restApiId, 'restApiId');
  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);
}