Skip to content

Instantly share code, notes, and snippets.

{
"id": 3,
"tasks": [
{
"task": 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.",
"status": "active",
"inputs": [
{
/*
We are posting this object to:
localhost:8000/v1/employee/12/milestone/1/
Only Task2 has real data now.
*/
{
"tasks": [
{
"task": 1, // this task contains empty values
"inputs": [
/* 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": [
{