POST api/users
POST
/api/users
curl \
-X POST https://TodoListRestApi/api/users \
-H "Content-Type: application/json" \
-d '{"userId":42,"username":"string","password":"string","todoLists":[{"listId":42,"user":{},"title":"string","description":"string","tasks":[{"taskId":42,"todoList":{},"title":"string","description":"string","dueDate":"string","author":"string","isCompleted":42}]}]}'
Request example
{
"userId": 42,
"username": "string",
"password": "string",
"todoLists": [
{
"listId": 42,
"user": {},
"title": "string",
"description": "string",
"tasks": [
{
"taskId": 42,
"todoList": {},
"title": "string",
"description": "string",
"dueDate": "string",
"author": "string",
"isCompleted": 42
}
]
}
]
}
Response examples (200)
{
"userId": 42,
"username": "string",
"password": "string",
"todoLists": [
{
"listId": 42,
"user": {},
"title": "string",
"description": "string",
"tasks": [
{
"taskId": 42,
"todoList": {},
"title": "string",
"description": "string",
"dueDate": "string",
"author": "string",
"isCompleted": 42
}
]
}
]
}