POST api/Users

Request Information

URI Parameters

None.

Body Parameters

User
NameDescriptionTypeAdditional information
UserID

integer

None.

FirstMidName

string

None.

LastName

string

None.

Password

string

None.

Tasks

Collection of Task

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "FirstMidName": "sample string 2",
  "LastName": "sample string 3",
  "Password": "sample string 4",
  "Tasks": [
    {
      "TaskID": 1,
      "CompleteBy": "2018-09-25T21:58:31.7425737+09:30",
      "Completed": true,
      "Description": "sample string 4",
      "Name": "sample string 5",
      "UserID": 6
    },
    {
      "TaskID": 1,
      "CompleteBy": "2018-09-25T21:58:31.7425737+09:30",
      "Completed": true,
      "Description": "sample string 4",
      "Name": "sample string 5",
      "UserID": 6
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

User
NameDescriptionTypeAdditional information
UserID

integer

None.

FirstMidName

string

None.

LastName

string

None.

Password

string

None.

Tasks

Collection of Task

None.

Response Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "FirstMidName": "sample string 2",
  "LastName": "sample string 3",
  "Password": "sample string 4",
  "Tasks": [
    {
      "TaskID": 1,
      "CompleteBy": "2018-09-25T21:58:31.7435738+09:30",
      "Completed": true,
      "Description": "sample string 4",
      "Name": "sample string 5",
      "UserID": 6
    },
    {
      "TaskID": 1,
      "CompleteBy": "2018-09-25T21:58:31.7435738+09:30",
      "Completed": true,
      "Description": "sample string 4",
      "Name": "sample string 5",
      "UserID": 6
    }
  ]
}