Comment{
"id": string,
"userId": string,
"postId": string,
"content":string,
"date":string,
}-
path:
/comment/user/{id}/{pagenumber}/{pagesize} -
returns:
{ "comments": Comment[], "success": Number, "message" : String }
- path :
/comment/post/{id}/{pagenumber}/{pagesize} - method:
DELETE - returns:
{ "comments": Comment[], "success": Number, "message" : String }
-
path:
/comment/new -
method:
POST -
params:
-
Header:
Name Description Type x-auth-token authentication token of the user String
-
-
returns:
{ "comments": Comment[], "success": Number, "message" : String }
- path:
/comment/{id} - method:
DELETE - params:
-
Header:
Name Description Type x-auth-token authentication token of the user String
-
- returns:
{ "comments": Comment[], "success": Number, "message" : String }
-
path:
/comment/vote -
method:
POST -
params:
-
Header:
Name Description Type x-auth-token authentication token of the user String
-
-
returns:
{ "comments": Comment[], "success": Number, "message" : String }