Get posts: http://ec2-13-250-12-33.ap-southeast-1.compute.amazonaws.com:7070/api/posts?author=&authorID=&category=&order=&pages=&limit= Get single post: http://ec2-13-250-12-33.ap-southeast-1.compute.amazonaws.com:7070/api/posts/21
Get users: http://ec2-13-250-12-33.ap-southeast-1.compute.amazonaws.com:7070/api/users/author Get single user: http://ec2-13-250-12-33.ap-southeast-1.compute.amazonaws.com:7070/api/users/author/10
{ user_name: "...", user_email: "...", user_password: "...", user_country: "...", file : File }
{ user_email: "...", user_password: "..." }
{ "data": [ { "category_id": 1, "category_name": "asian" }, { "category_id": 2, "category_name": "india" }, ... ] }
Query options: author, authorID, category, order, pages, limit: /api/posts?author=ngan&category=india&pages=1&order=DESC&limit=2
{ "data": { "posts": [ { "post_id": 21, "post_title": "Dal makhani", "post_desc": "...", "post_thumb": "dal-makhani-featured-image-500x500_1677248355465.jpeg", "createdAtPost": "2023-02-24T14:19:15.000Z", "dataUser": { "user_id": 1, "user_name": "user3", "user_avatar": "avt_chibi_1676278417201.png", "user_country": "Iceland", "createdAtUser": "2023-02-11T16:54:38.000Z" }, "dataCategory": { "category_name": "india" } }, ... ], "pages": 2 } }
{ "data": { "post_id": 21, "post_title": "Dal makhani", "post_desc": "...", "post_thumb": "dal-makhani-featured-image-500x500_1677248355465.jpeg", "createdAtPost": "2023-02-24T14:19:15.000Z", "dataUser": { "user_id": 1, "user_name": "user3", "user_avatar": "avt_chibi_1676278417201.png", "user_country": "Iceland", "createdAtUser": "2023-02-11T16:54:38.000Z" }, "dataCategory": { "category_name": "india" } } }
{ post_title : "...", post_desc: "...", category_id: "...", file: File }
{ post_title : "...", post_desc: "...", category_id: "...", file: File }
{ "data": { "id": 1, "user_name": "user3", "user_email": "[email protected]", "user_avatar": "avt_chibi_1676278417201.png", "user_country": "Iceland", "user_isAdmin": false, "createdAt": "2023-02-11T16:54:38.000Z" } }
{ "user_name":"...", "user_country": "..." }
{ "user_password":"...", "user_password_old": "..." }
{ "file": File }