# API

# Comment

# Comment List

Get comment list for article

GET /comment
1

Parameters:

ParameterTypeDescription
pathstringArticle id for comment
pagenumberComment page
pageSizenumberComment list page size

# Comment Count

Get comment count for article

GET /comment?type=count
1

Parameters:

ParameterTypeDescription
pathstringArticle id for comment

# Recent Comment

Get recent comment

GET /comment?type=recent
1

Parameters:

ParameterTypeDescription
countnumbercomment count return

# Submit comment

POST /comment
1

Parameters:

ParameterTypeDescription
commentstringcomment content
linkstringcommentator site
mailstringcommentator email
nickstringcommentator nick
pidstringcomment id which one replied
ridstringroot comment id which one ownerd
uastringcommentator's user agent
urlstringArticle id for comment
atstringcomment nick name which one replied

# Reading statistics

# Get reading statistics

Get the number of readings corresponding to an article or multiple articles.

GET /article
1

Parameters:

ParameterTypeDescription
pathstringArticle id for comment,multiple ids should be spliced with commas.

# Update reading statistics

Update the reading count of an article.

POST /article
1

Parameters:

ParameterTypeDescription
pathstringArticle id for comment