POST
/authentication/register
{
"username" : " String" ,
"email" : " String" ,
"password" : " String" ,
"name" : " String"
}
{
"username" : " String" ,
"email" : " String" ,
"name" : " String" ,
"created_at" : " Date" ,
"updated_at" : " Date" ,
"deleted_at" : " Date"
}
POST
/authentication/login
{
"username" : " String" ,
"password" : " String" ,
}
{
"token_id" : " Number" ,
"user_id" : " Number" ,
"token_value" : " String" ,
"created_at" : " Date" ,
"updated_at" : " Date" ,
"deleted_at" : " Date"
}
{
"user_id" : " Number" ,
"username" : " String" ,
"email" : " String" ,
"name" : " String" ,
"created_at" : " Date" ,
"updated_at" : " Date" ,
"deleted_at" : " Date"
}
{
"user_id" :" Number" ,
"username" :" String" ,
"email" :" String" ,
"name" :" String" ,
"friends" :{
"username" :" String" ,
"name" :" String" ,
"email" :" String"
},
"wanted_list" :[
{
"content_name" :" String" ,
"owner_name" :" String" ,
"status" :" String" ,
"my_rate" :" Number" ,
"created_at" :" Date"
}
],
"comments" :[
{
"id" :" int" ,
"discussion_id" :" int" ,
"parent_comment_id" :" int" ,
"text" :" String" ,
"is_spoiler" :" bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
],
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"updatable-key" : " value"
}
{
"user_id" : " Number" ,
"username" : " String" ,
"email" : " String" ,
"name" : " String" ,
"created_at" : " Date" ,
"updated_at" : " Date" ,
"deleted_at" : " Date"
}
{
"message" : " User `DELETE`d successfully!"
}
{
"name" :" String" ,
"type" :" String" ,
"description" :" String" ,
"image" :" String" ,
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"image" :" String" ,
"name" :" String" ,
"type" :" String" ,
"description" :" String" ,
"views" :" Number" ,
"rate" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"image" :" String" ,
"name" :" String" ,
"type" :" String" ,
"description" :" String" ,
"views" :" Number" ,
"rate" :" Number" ,
"my_score" : " Number" ,
"wanted_status" :" String" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"updatable-key" : " value"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"image" :" String" ,
"name" :" String" ,
"type" :" String" ,
"description" :" String" ,
"views" :" Number" ,
"rate" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"message" : " User `DELETE`d successfully!"
}
Comments
POST
/comments/
{
"content_review_id" :" Number" ,
"discussion_id" :" Number" ,
"parent_comment_id" :" Number" ,
"text" :" String" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_review_id" :" Number" ,
"discussion_id" :" Number" ,
"parent_comment_id" :" Number" ,
"text" :" String" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
PUT
/comments/:id
{
"updatable-key" : " value"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_review_id" :" Number" ,
"discussion_id" :" Number" ,
"parent_comment_id" :" Number" ,
"text" :" String" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
DELETE
/comments/:id
{
"message" : " Comment `DELETE`d successfully!"
}
GET
/users/:userId/comments
{
"comments" :[
{
"id" :" Number" ,
"content_review_id" :" Number" ,
"discussion_id" :" Number" ,
"parent_comment_id" :" Number" ,
"text" :" String" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
]
}
GET
/users/:userId/comments/:id
{
"id" :" Number" ,
"content_review_id" :" Number" ,
"discussion_id" :" Number" ,
"parent_comment_id" :" Number" ,
"text" :" String" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"content_id" :" Number" ,
"status" :" String" ,
"my_score" :" Number"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_id" :" Number" ,
"status" :" String" ,
"my_score" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"wantedLists" : [
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_id" :" Number" ,
"status" :" String" ,
"my_score" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
]
}
PUT
/wanted-list/:contentId
{
"updatable-key" : " value"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_id" :" Number" ,
"status" :" String" ,
"my_score" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
DELETE
/wanted-list/:contentId
{
"message" : " Content deleted successfully from yours wanted list!" ,
}
GET
/users/:userId/wanted-list
{
"wanted_lists" :[
{
"id" :" Integer" ,
"content_id" :" Integer" ,
"status" :" String" ,
"my_score" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
]
}
GET
/users/:userId/wanted-list
{
"message" : " Comment `DELETE`d successfully!" ,
}
{
"content_id" :" Number" ,
"text" :" String" ,
"status" :" String" ,
"score" :" Number" ,
"is_spoiler" :" Bool" ,
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_id" :" Number" ,
"text" :" String" ,
"status" :" String" ,
"score" :" Number" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"updatable-key" : " value"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"content_id" :" Number" ,
"text" :" String" ,
"status" :" String" ,
"score" :" Number" ,
"is_spoiler" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
GET
/users/:userId/reviews
{
"wanted_lists" :[
{
"id" :" Integer" ,
"content_id" :" Integer" ,
"status" :" String" ,
"my_score" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
]
}
GET
/contents/:contentId/reviews
{
"reviews" :[
{
"id" :" Number" ,
"user_id" :" Number" ,
"image" :" String" ,
"name" :" String" ,
"type" :" String" ,
"description" :" String" ,
"views" :" Number" ,
"rate" :" Number" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
]
}
{
"message" : " Review `DELETE`d successfully!" ,
}
{
"organizers" :[
" Number"
],
"image" :" String" ,
"name" :" String" ,
"content_types" :[
" String"
],
"description" :" String" ,
"tags" :[
" String"
],
"website" :" String" ,
"rules" :" String" ,
}
{
"id" :" Number" ,
"organizers" :[
" Number"
],
"image" :" String" ,
"name" :" String" ,
"content_types" :[
" String"
],
"description" :" String" ,
"tags" :[
" String"
],
"website" :" String" ,
"rules" :" String" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"updatable-key" : " value"
}
{
"id" :" Number" ,
"organizers" :[
" Number"
],
"image" :" String" ,
"name" :" String" ,
"content_types" :[
" String"
],
"description" :" String" ,
"tags" :[
" String"
],
"website" :" String" ,
"rules" :" String" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"id" :" Number" ,
"organizers" :[
" Number"
],
"image" :" String" ,
"name" :" String" ,
"content_types" :[
" String"
],
"description" :" String" ,
"tags" :[
" String"
],
"website" :" String" ,
"rules" :" String" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"message" : " Community `DELETE`d successfully!" ,
}
{
"user_id" :" Number" ,
"community_id" :" Number" ,
"header" :" String" ,
"text" :" String" ,
"is_privite" :" Bool" ,
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"community_id" :" Number" ,
"header" :" String" ,
"text" :" String" ,
"is_privite" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"updatable-key" : " value"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"community_id" :" Number" ,
"header" :" String" ,
"text" :" String" ,
"is_privite" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"id" :" Number" ,
"user_id" :" Number" ,
"community_id" :" Number" ,
"header" :" String" ,
"text" :" String" ,
"is_privite" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
{
"message" : " Discussion deleted successfully!"
}
GET
/communities/:communityId/discussions
{
"discussions" :[
{
"id" :" Number" ,
"user_id" :" Number" ,
"header" :" String" ,
"text" :" String" ,
"is_privite" :" Bool" ,
"created_at" :" Date" ,
"updated_at" :" Date" ,
"deleted_at" :" Date"
}
]
}
{
"to" : " Number" ,
"text" : " String"
}
{
"status" : " String" ,
"timestamp" : " Date"
}
{
"messages" : [
{
"from" : " Number" ,
"to" : " Number" ,
"text" : " String" ,
"created_at" : " Date"
}
]
}
{
"message" : " Message deleted successfully!"
}
{
"name" : " String" ,
"path" : " String"
}
{
"id" : " Number" ,
"name" : " String" ,
"path" : " String" ,
"created_at" : " Date" ,
}
{
"id" : " Number" ,
"name" : " String" ,
"path" : " String" ,
"created_at" : " Date" ,
}
{
"message" : " Image deleted successfully!"
}