Skip to content

Instantly share code, notes, and snippets.

@tonghe7
Created November 1, 2023 11:19
Show Gist options
  • Save tonghe7/df67f0efdce1b18304e51d878fc4711a to your computer and use it in GitHub Desktop.
Save tonghe7/df67f0efdce1b18304e51d878fc4711a to your computer and use it in GitHub Desktop.
/* localhost:8000/v1/milestone/template/1/ */
{
"id": 1,
"title": "Oct 31 Milestone",
"category": "dummy",
"description": "Oct 31 Milestone will contain two Tasks, each of which will contain two Inputs.",
"average_time": 22001.0,
"tasks": [
{
"id": 1,
"title": "Oct 31 Task 1 of 2 (file & text)",
"description": "Oct 31 Task 1 of 2 belongs to “Oct 31 Milestone”. This task contains two inputs.",
"average_time": 90000.0,
"inputs": [
{
"id": 1,
"created_at": "2023-10-31T12:16:01.613488Z",
"updated_at": "2023-10-31T12:16:01.613530Z",
"type": "file",
"name": "Oct 31 File Input",
"label": "Oct 31 File Input",
"tooltip": "This is a file input for Task “Oct 31 Task 1 of 2”.",
"is_system_input": false
},
{
"id": 2,
"created_at": "2023-10-31T12:16:28.089906Z",
"updated_at": "2023-10-31T12:16:28.089939Z",
"type": "text",
"name": "Oct 31 text input",
"label": "Oct 31 text input",
"tooltip": "This is a text input for Task “Oct 31 Task 1 of 2”.",
"is_system_input": false
}
],
"timespan": null
},
{
"id": 2,
"title": "Oct 31 Task 2 of 2 (int & text)",
"description": "Oct 31 Task 2 of 2 belongs to “Oct31 Milestone”",
"average_time": 77665.0,
"inputs": [
{
"id": 3,
"created_at": "2023-10-31T12:18:22.357694Z",
"updated_at": "2023-10-31T12:18:22.357732Z",
"type": "integer",
"name": "Oct 31 Integer for Task 2 of 2",
"label": "Oct 31 Integer for Task 2 of 2",
"tooltip": "This is an integer input for Task “Oct 31 Task 2 of 2”.",
"is_system_input": false
},
{
"id": 4,
"created_at": "2023-10-31T12:18:54.134175Z",
"updated_at": "2023-10-31T12:18:54.134207Z",
"type": "text",
"name": "Oct 31 Text Field for Task 2 of 2",
"label": "Oct 31 Text Field for Task 2 of 2",
"tooltip": "Oct 31 Text Field for Task 2 of 2",
"is_system_input": false
}
],
"timespan": null
},
{
"id": 3,
"title": "Added Task On Nov 1",
"description": "Added Task On Nov 1 with a system input and a URL",
"average_time": 5000.0,
"inputs": [
{
"id": 5,
"created_at": "2023-11-01T10:12:56.872228Z",
"updated_at": "2023-11-01T10:12:56.872242Z",
"type": "text",
"name": "Nov 1 System Input Text",
"label": "Nov 1 System Input Text",
"tooltip": "Nov 1 System Input Text. This is a system input.",
"is_system_input": true
},
{
"id": 6,
"created_at": "2023-11-01T10:13:31.923960Z",
"updated_at": "2023-11-01T10:13:31.923985Z",
"type": "url",
"name": "Nov 1 URL Field",
"label": "Nov 1 URL Field",
"tooltip": "Nov 1 URL Field take a URL.",
"is_system_input": false
}
],
"timespan": null
}
],
"description_media": "http://localhost:8000/media/uploads/milestone/Video-Placeholder.mp4"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment