Skip to content

Instantly share code, notes, and snippets.

@tonghe7
Created November 1, 2023 11:55
Show Gist options
  • Save tonghe7/51c6aca35db81b1ced10cf3cf11c7754 to your computer and use it in GitHub Desktop.
Save tonghe7/51c6aca35db81b1ced10cf3cf11c7754 to your computer and use it in GitHub Desktop.
/*
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": [
{
"input": 1, // this file is left empty for now
"value": {
"file": null
}
},
{
"input": 2,
"value": {
"text": "text"
}
}
]
},
{
"task": 2, // this task contains real data
"inputs": [
{
"input": 3,
"value": {
"integer": 9999
}
},
{
"input": 4,
"value": {
"text": "Real input text"
}
}
]
},
{
"task": 3, // this task also only contains empty data
"inputs": [
{
"input": 5, // this input field is a system input
"value": {
"text": ""
}
},
{
"input": 6,
"value": {
"url": ""
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment