Obter o curso de um usuário
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/routes/{route_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/routes/{route_id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/routes/{route_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"route": {
"id": 123,
"external_id": "<string>",
"name": "<string>",
"slug_name": "<string>",
"total_contents": 123,
"minutes_duration": 123,
"starting_date": "2023-12-25",
"rating": 123,
"language": "es",
"finished": true,
"published": true,
"automatic_advance": true,
"alias": "<string>",
"test_trials_available": 123,
"contentmoduleroute_set": [
{
"ordering": 123,
"content_module": {
"pk": 123,
"slug_name": "<string>",
"name": "<string>",
"description": "<string>",
"minutes_duration": 123,
"total_contents": 123,
"alias": "<string>",
"progress": 123,
"is_active": true
}
}
]
},
"progress_percentage": 123,
"real_minutes_usage": 123,
"removed": true
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}Progresso
Obter o curso de um usuário
Retorna a matrícula do usuário em um curso, com todos os módulos do curso e o progresso e a flag de ativo do usuário em cada um.
GET
/
clients
/
users
/
{user_id}
/
routes
/
{route_id}
/
Obter o curso de um usuário
curl --request GET \
--url https://app.reinvented.education/api/clients/users/{user_id}/routes/{route_id}/ \
--header 'Authorization: <api-key>'import requests
url = "https://app.reinvented.education/api/clients/users/{user_id}/routes/{route_id}/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.reinvented.education/api/clients/users/{user_id}/routes/{route_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"route": {
"id": 123,
"external_id": "<string>",
"name": "<string>",
"slug_name": "<string>",
"total_contents": 123,
"minutes_duration": 123,
"starting_date": "2023-12-25",
"rating": 123,
"language": "es",
"finished": true,
"published": true,
"automatic_advance": true,
"alias": "<string>",
"test_trials_available": 123,
"contentmoduleroute_set": [
{
"ordering": 123,
"content_module": {
"pk": 123,
"slug_name": "<string>",
"name": "<string>",
"description": "<string>",
"minutes_duration": 123,
"total_contents": 123,
"alias": "<string>",
"progress": 123,
"is_active": true
}
}
]
},
"progress_percentage": 123,
"real_minutes_usage": 123,
"removed": true
}{
"detail": "Authentication credentials were not provided."
}{
"detail": "Not found."
}
