api/page-snapshots/:projectname/:pageid/:timestampid
https://scrapbox.io/api/page-snapshots/:projectname/:pageid/:timestampid
応答の型
code:ts
type PageSnapshotResponse = { // loginしていなかったとき
name: 'NotLoggedInError';
message: 'You are not logged in yet.';
statusCode: 401;
details: {
};
} | { // loginしていたとき
page: {
id: string;
title: string;
image: string | null;
descriptions: string[];
user: { id: string; };
lastUpdateUser: { id: string; } | null;
pin: number;
views: number;
linked: number;
commitId: string;
created: number;
updated: number;
accessed: number;
snapshotCreated: number;
pageRank: number;
};
snapshot: {
title: string;
created: number;
lines: {
id: string;
text: string;
userId: string;
created: number;
updated: number;
}[];
};
};