We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common/models/Post.js
userId, topicId, //optional body, //text, maxlen: 1000, index. images: // string list //optional, comments: [Comment] //comment list, commentCount, //integer, default: 0, likes: [userId], //user id ObjectId list likeCount: //integer, default: 0 bookmarks: [userId], //ObjectId list of userIds, bookmarkCount: //integer, default: 0 timestamps: true
URL: /createPost Method: POST
{ "topicId": <topic id>, //optional, if topic doesn't exist, return 404 "body": <body text>, //required, length 1000s iluuu bol return 400 "images": <list of strings>, } //userId-г accessToken-с авна
Response:
{ "_id": <post id>, "userId": <user id>, "topicId": <topic id>, "body": <body text>, "images": <list of strings>, }
The text was updated successfully, but these errors were encountered:
Saruulbuyan-Munkhtur
No branches or pull requests
common/models/Post.js
URL: /createPost
Method: POST
Response:
The text was updated successfully, but these errors were encountered: