colymba / silverstripe-restfulapi

SilverStripe RESTful API with a default JSON serializer.
BSD 3-Clause "New" or "Revised" License
64 stars 34 forks source link

The full configuration for BlogCategories & FeaturedImage #102

Open Misagh90 opened 5 years ago

Misagh90 commented 5 years ago

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"}
],