paulschneider / b247-api

0 stars 0 forks source link

Category inside channel object as an object #49

Closed pablocarrillo closed 10 years ago

pablocarrillo commented 10 years ago

I think is probably because a small thing in the template. At this moment if we go to: http://api.wf-cycle.co.uk/articles?subchannel=71&category=17&article=226

"channel": {
"id": 51,
"name": "Food & Drink",
"sefName": "food-drink",
"colour": "#d6ab29",
"secondaryColour": "#7b473a",
"path": "/food-drink/",
"isEnabled": true,
"subChannels": [
{
"id": 71,
"name": "Guide",
"sefName": "guide",
"path": "/food-drink/guide/",
"displayType": {
"id": 3,
"type": "Directory"
},
"isEnabled": true,
"categories": {
"2": {
"id": 17,
"name": "Pub",
"sefName": "pub",
"path": "/food-drink/guide/pub/"
}
}
}
]
},

But other articles are ok.

pablocarrillo commented 10 years ago

This is a good one

"channel": {
"id": 48,
"name": "News & Comment",
"sefName": "news-comment",
"colour": "#33b9f8",
"secondaryColour": "#222c5c",
"path": "/news-comment/",
"isEnabled": true,
"subChannels": [
{
"id": 53,
"name": "Daily",
"sefName": "daily",
"path": "/news-comment/daily/",
"displayType": {
"id": 1,
"type": "Article"
},
"isEnabled": true,
"categories": [
{
"id": 5,
"name": "Crime",
"sefName": "crime",
"path": "/news-comment/daily/crime/"
}
]
}
]
},
paulschneider commented 10 years ago

This should be fixed for you now (on cycle). Didn't we fix this before? I wonder if this is another one of those cherry-pick (s) that has been removed by the new deploy process!

pablocarrillo commented 10 years ago

Yeah, I think so

paulschneider commented 10 years ago

Okay to close?