silverstripe-restfulapi icon indicating copy to clipboard operation
silverstripe-restfulapi copied to clipboard

The full configuration for BlogCategories & FeaturedImage

Open Misagh90 opened this issue 4 years ago • 0 comments

Hi, I try these docs for the BlogCategories data object & FeaturedImage for Blog but i receive these error: Screenshot (185)

Would you show me the correct configuration? Thanks

the default api:

"FeaturedImage": 13,
"Categories": [
1
],
"Tags": [
2
],

but i need somthing like this:

"FeaturedImage": 
{"ID": 13, 
"Link": "sample/link/address"}
"Categories": [
{"ID": 1,
 "Link": "sample/link/address", 
"Title": "SampleTitle"}
],

Misagh90 avatar Jul 09 '19 08:07 Misagh90