As a frontend developer, I want the JSON data on retrieving the posts to not include any unwanted information.
[
{
"ID": 1,
"CreatedAt": "2022-01-30T20:08:23.115766-05:00",
"UpdatedAt": "2022-01-30T20:08:23.115766-05:00",
"DeletedAt": null,
"SellerId": 1,
"CategoryId": 1,
"SubcategoryId": 1,
"Category": { //unwanted info
"CategoryId": 0,
"Name": ""
},
"Subcategory": { //unwanted info
"SubcategoryId": 0,
"CategoryId": 0,
"Category": {
"CategoryId": 0,
"Name": ""
},
"Name": ""
},
"Title": "Post1",
"Description": "Post1Desc",
"IsHidden": false,
"IsFlagged": false,
"IsDeleted": false,
"HasImage": false
}
]
[
{
"ID": 1,
"CreatedAt": "2022-01-30T20:08:23.115766-05:00",
"UpdatedAt": "2022-01-30T20:08:23.115766-05:00",
"DeletedAt": null,
"SellerId": 1,
"CategoryId": 1,
"SubcategoryId": 1,
"Title": "Post1",
"Description": "Post1Desc",
"IsHidden": false,
"IsFlagged": false,
"IsDeleted": false,
"HasImage": false
}
]