getPageWithHttpInfo method

Future<Response> getPageWithHttpInfo(
  1. String page,
  2. String channelId
)

Get Page by path

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getPageWithHttpInfo(String page, String channelId) async {
  // ignore: prefer_const_declarations
  final path = r'/delivery/site/v1/channels/{channel_id}/pages/{path}'
      .replaceAll('{path}', page)
      .replaceAll('{channel_id}', channelId);

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    headerParams,
    contentTypes.isEmpty ? null : contentTypes[0],
  );
}