progress #31
- userId
-
Maryam Kunze @maryam_kunze
- courseId
- courses/76
- lessonId
- lessons/514
- state
- not_started
- completedAt
- —
- updatedAt
- createdAt
Overview
progress / #31
#31
#31
Request
curl example
curl -sS \ "https://example-data.com/api/v1/progress/31" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/progress/31" ); 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/31"
);
const progress = (await res.json()) as Progress; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/progress/31"
)
progres = res.json() Response
{
"id": 31,
"userId": 195,
"courseId": 76,
"lessonId": 514,
"state": "not_started",
"completedAt": null,
"updatedAt": "2024-09-19T23:10:42.563Z",
"createdAt": "2024-09-19T23:10:42.563Z"
}