Skip to content

Instantly share code, notes, and snippets.

@mrstalon
Last active December 11, 2019 09:17
Show Gist options
  • Save mrstalon/2929d6ee1ab6115c612cfb93b1e1381c to your computer and use it in GitHub Desktop.
Save mrstalon/2929d6ee1ab6115c612cfb93b1e1381c to your computer and use it in GitHub Desktop.
Task tree request response
const taskSchema = {
title: 'Группа правил 1',
id: 12,
tasks: [
{
title: 'Правило 1.1',
id: 15,
tasks: [
{
title: 'Пункт правила 1.1.1',
id: 17,
status: 'correct',
},
{
title: 'Пункт правила 1.1.2',
id: 18,
status: 'wrong',
},
{
title: 'Пункт правила 1.1.3',
id: 19,
status: 'undone',
},
],
},
{
title: 'Правило 1.2',
id: 25,
tasks: [
{
title: 'Пункт правила 1.2.1',
id: 27,
status: 'correct',
},
{
title: 'Пункт правила 1.2.2',
id: 28,
status: 'undone',
},
{
title: 'Пункт правила 1.2.3',
id: 29,
status: 'undone',
},
],
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment