progress #247
- userId
-
Brycen Bayer @brycen_bayer60
- courseId
- courses/21
- lessonId
- lessons/157
- state
- not_started
- completedAt
- —
- updatedAt
- createdAt
Overview
progress / #247
#247
#247
Request
curl example
curl -sS \ "https://example-data.com/api/v1/progress/247" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/progress/247" ); 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/247"
);
const progress = (await res.json()) as Progress; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/progress/247"
)
progres = res.json() Response
{
"id": 247,
"userId": 6,
"courseId": 21,
"lessonId": 157,
"state": "not_started",
"completedAt": null,
"updatedAt": "2024-07-22T07:01:57.233Z",
"createdAt": "2024-07-22T07:01:57.233Z"
}