progress #654
- userId
-
Lawrence Rogahn @lawrence_rogahn33
- courseId
- courses/44
- lessonId
- —
- state
- in_progress
- completedAt
- —
- updatedAt
- createdAt
Overview
progress / #654
#654
#654
Request
curl example
curl -sS \ "https://example-data.com/api/v1/progress/654" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/progress/654" ); const progress = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/progress.d.ts https://example-data.com/types/progress.d.ts
import type { Progress } from "./types/progress";
const res = await fetch(
"https://example-data.com/api/v1/progress/654"
);
const progress = (await res.json()) as Progress; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/progress/654"
)
progres = res.json() Response
{
"id": 654,
"userId": 245,
"courseId": 44,
"lessonId": null,
"state": "in_progress",
"completedAt": null,
"updatedAt": "2024-11-22T16:24:06.355Z",
"createdAt": "2024-09-27T06:16:54.390Z"
}