getRelatedPagesWithHttpInfo method

Future<Response> getRelatedPagesWithHttpInfo(
  1. String title
)

Get pages related to the given title

Returns summaries for 20 pages related to the given page. Summaries include page title, namespace and id along with short text description of the page and a thumbnail. Stability: experimental

Note: This method returns the HTTP Response.

Parameters:

  • String title (required): Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page.

Implementation

Future<Response> getRelatedPagesWithHttpInfo(
  String title,
) async {
  // ignore: prefer_const_declarations
  final path = r'/page/related/{title}'.replaceAll('{title}', title);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}