function getDumpByPath
getDumpByPath(
userId: string,
slug: string,
requestingUserId?: string
): Dump

Returns the dump of userId's whose slug is or was slug, as requestingUserId may see it, for GET /api/users/:key/dumps/:slug, which reads a dump by its page's path. Reached by a former slug, it comes with its current one, which the client puts in its URL.

Parameters

userId: string
slug: string
optional
requestingUserId: string

Return Type

Throws

APIException

404 when there is no such dump, or it is private and not theirs.

Usage

import { getDumpByPath } from "api/services/dump-service.ts";