Created
November 1, 2023 11:55
-
-
Save tonghe7/51c6aca35db81b1ced10cf3cf11c7754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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