POST api/Comment

Thông tin cần

Các tham số URI

None.

Comment
NameDescriptionTypeAdditional information
Id

integer

None.

TargetId

integer

None.

CommentParentID

integer

None.

CommentStatusID

integer

None.

VoteCount

integer

None.

CommentTitle

string

None.

CommentDetails

string

None.

FullName

string

None.

Email

string

None.

Address

string

None.

IsDeleted

boolean

None.

IsShow

boolean

None.

ModifiedDate

date

None.

ModifiedUser

string

None.

CreatedDate

date

None.

CreatedUser

string

None.

Parent

Comment

None.

Childrens

Collection of Comment

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TargetId": 1,
  "CommentParentID": 1,
  "CommentStatusID": 1,
  "VoteCount": 1,
  "CommentTitle": "sample string 2",
  "CommentDetails": "sample string 3",
  "FullName": "sample string 4",
  "Email": "sample string 5",
  "Address": "sample string 6",
  "IsDeleted": true,
  "IsShow": true,
  "ModifiedDate": "2019-05-27T04:40:51.8870276+07:00",
  "ModifiedUser": "sample string 7",
  "CreatedDate": "2019-05-27T04:40:51.8870276+07:00",
  "CreatedUser": "sample string 8",
  "Parent": {
    "$ref": "1"
  },
  "Childrens": [
    {
      "$ref": "1"
    },
    {
      "$ref": "1"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Thông tin trả về

Mô tả các trường dữ liệu

JsonMessage
NameDescriptionTypeAdditional information
Erros

boolean

None.

Message

string

None.

ID

string

None.

TenDangNhap

string

None.

Obj

Object

None.

Kiểu dữ liệu

application/json, text/json

Sample:
{
  "Erros": true,
  "Message": "sample string 2",
  "ID": "sample string 3",
  "TenDangNhap": "sample string 4",
  "Obj": {
    "$id": "2"
  }
}