getStage method

Future<Stage> getStage({
  1. required String restApiId,
  2. required String stageName,
})

Gets information about a Stage resource.

May throw BadRequestException. May throw ConflictException. May throw LimitExceededException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter restApiId : The string identifier of the associated RestApi.

Parameter stageName : The name of the Stage resource to get information about.

Implementation

Future<Stage> getStage({
  required String restApiId,
  required String stageName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/stages/${Uri.encodeComponent(stageName)}',
    exceptionFnMap: _exceptionFns,
  );
  return Stage.fromJson(response);
}