paulschneider / b247-api

0 stars 0 forks source link

The media object is inside the assignment object #4

Closed pablocarrillo closed 10 years ago

pablocarrillo commented 10 years ago

The media object is inside the assignment but should be inside the article itself

---- REQUEST ----
Method: GET uri: http://api.wf-staging.co.uk/channel/68/directory
---- CLIENT HEADERS ----
{
    "Accept": "application/json", 
    "BristolAPIClient": "iphone", 
    "content-type": "application/json"
}
---- CLIENT PAYLOAD----
{}
---- RESPONSE ----
http://api.wf-staging.co.uk/channel/68/directory
---- SERVER HEADERS ----
x-powered-by PHP/5.4.28
transfer-encoding chunked
set-cookie laravel_session=eyJpdiI6ImZBTFBveURGMUF3REFBMldFQnVEQzdZdjhPSnpzQjlpMlB0VFVBSEoyVzg9IiwidmFsdWUiOiJsNTdkZTJ3QWYreWd3Rm5EQnA0ZkFkbWxRSlFqVlRuSFwvcExNdWhleWdOMk85Ym9LSDJLazIzSWRxV3l4dGdoZ0QwNlY2MWh3MXNCSHh3ZlZwTDRLS1E9PSIsIm1hYyI6Ijc5M2IxZjkwYzAzMDM2ZDUyZjVjYTk1Zjk4MmE3YzI5YmJhN2E0MWZjMDA2NzFmOTM1ZTc3MTVlMDE0NzY5NzAifQ%3D%3D; expires=Wed, 02-Jul-2014 18:25:10 GMT; path=/; httponly
server Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 PHP/5.4.28
cache-control no-cache
date Wed, 02 Jul 2014 16:25:09 GMT
x-frame-options SAMEORIGIN
content-type application/json
---- SERVER CODE ----
200
---- SERVER PAYLOAD ----
{
    "source": [
        {
            "browser": false, 
            "platform": false
        }
    ], 
    "success": {
        "data": {
            "adverts": [
                {
                    "id": 91, 
                    "isAdvert": true, 
                    "media": {
                        "filepath": "http://wildfirecomms-images.co.uk/30-06-14-dyslexia.jpg"
                    }, 
                    "title": "Consequatur consequatur temporibus alias vel.", 
                    "url": "https://shanahan.info/facilis-consequatur-architecto-neque-vel.html"
                }, 
                {
                    "id": 71, 
                    "isAdvert": true, 
                    "media": {
                        "filepath": "http://wildfirecomms-images.co.uk/30-06-14-dyslexia.jpg"
                    }, 
                    "title": "Delectus est est labore.", 
                    "url": "http://www.ziemann.biz/autem-sunt-sint-quia-qui-laborum-quia-nihil"
                }, 
                {
                    "id": 78, 
                    "isAdvert": true, 
                    "media": {
                        "filepath": "http://wildfirecomms-images.co.uk/30-06-14-dyslexia.jpg"
                    }, 
                    "title": "Non vero quaerat iure minima aut.", 
                    "url": "http://www.conroy.com/a-illo-aspernatur-inventore-id"
                }
            ], 
            "articles": [
                {
                    "id": 86, 
                    "isAdvert": true, 
                    "media": {
                        "filepath": "http://wildfirecomms-images.co.uk/30-06-14-dyslexia.jpg"
                    }, 
                    "title": "Nobis necessitatibus praesentium nobis sint corrupti.", 
                    "url": "https://www.kubdach.com/et-vel-sit-fugiat-non"
                }, 
                {
                    "assignment": {
                        "category": {
                            "id": 11, 
                            "name": "Category 7"
                        }, 
                        "channel": {
                            "id": 51, 
                            "name": "Food & Drink"
                        }, 
                        "media": {
                            "alt": "holding image", 
                            "filepath": "http://wildfirecomms-images.co.uk/30-06-14-dyslexia.jpg", 
                            "height": 450, 
                            "title": "Image coming soon", 
                            "width": 800
                        }, 
                        "subChannel": {
                            "id": 68, 
                            "name": "Recipies"
                        }
                    }, 
                    "displayStyle": 1, 
                    "displayType": {
                        "id": 3, 
                        "type": "Directory"
                    }, 
                    "id": 148, 
                    "isAdvert": false, 
                    "subHeading": "incentivize frictionless communities", 
                    "title": "Team-oriented modular alliance"
                }
            ], 
            "channel": {
                "colour": "#d6ab29", 
                "id": 51, 
                "isEnabled": true, 
                "name": "Food & Drink", 
                "secondaryColour": "#7b473a", 
                "subChannels": [
                    {
                        "displayType": {
                            "id": 3, 
                            "type": "Directory"
                        }, 
                        "id": 68, 
                        "isEnabled": true, 
                        "name": "Recipies", 
                        "path": "/food-drink/recipies/", 
                        "sefName": "recipies"
                    }
                ]
            }
        }, 
        "endpoint": "channel/68/directory", 
        "message": "Sub-channel found.", 
        "method": "GET", 
        "statusCode": 200, 
        "time": 1404318310
    }
}
paulschneider commented 10 years ago

Lordy. What a terrible mistake to make. I've put it back to the correct position now. Apologies. Was obviously a bit too quick to get that one done!

pablocarrillo commented 10 years ago

Perfect