Article Examples

Use case - Retrieve an article by ID.

GET Request: /articles/10073061-7033-0000-0049-8860e72c86ac?fs={id,title,caption,originalImage{asset{source}},author{firstName,lastName,userProfile{title,imageUrl,profileUrl,type}},body}

Field selector:

{
    id,
    title,
    caption,
    originalImage{
        asset{
            source
           }
    },
    author{
        firstName,
        lastName,
        userProfile{
            title,
            imageUrl,
            profileUrl,
            type
        }
    },
    body
}

GET RESPONSE:

{
  "id": "10073061-7033-0000-0049-8860e72c86ac",
  "title": "Cowboys have DE Gregory watch tape of past stars",
  "caption": "Cowboys newcomer Randy Gregory, prodded by defensive coordinator Rod Marinelli, is brushing up on film of Simeon Rice and other current and previous stars at his position.",
  "originalImage": {
    "asset": {
      "source": "http://static.nfl.com/static/content/public/photo/2015/06/25/0ap3000000498892.jpg"
    }
  },
  "author": {
    "firstName": "Kevin",
    "lastName": "Patra",
    "userProfile": {
      "pager": {
        "previous": null,
        "self": null,
        "next": null,
        "limit": null,
        "offset": null,
        "total": 1
      },
      "data": [
        {
          "title": "Around the NFL writer",
          "imageUrl": "http://static.nfl.com/static/content/public/photo/2013/08/30/0ap1000000236552.jpg",
          "profileUrl": "http://static.nfl.com/static/content/public/person-profile/2013/08/29/0ap1000000236291.htm",
          "type": "author"
        }
      ]
    }
  },
  "body": "<html> <head>  <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"></META>  <title>Cowboys' Randy Gregory watching film of Simeon Rice</title><%@ taglib prefix=\"mobile-content\" tagdir=\"/WEB-INF/tags/mobile-content\" %><%@ taglib prefix=\"content\" tagdir=\"/WEB-INF/tags\" %> </head>  <body>  <div class=\"articleText\">    <p>     <mobile-content:video ads=\"1\" align=\"center\" autoplay=\"true\" contentId=\"0ap3000000498850\" id=\"vid1\" related=\"team\" size=\"large\"></mobile-content:video></p>    <p>AURORA, Ohio -- During <a href=\"http://www.nfl.com/player/randygregory/2552446/profile\">Randy Gregory</a>'s draft visit, <a href=\"http://www.nfl.com/teams/dallascowboys/profile?team=DAL\">Dallas Cowboys</a> defensive coordinator Rod Marinelli showed the rookie film of Simeon Rice to display the type of pass-rusher Gregory could be at the NFL level. </p>    <content:promo src=\"/widgets/custom/packages/2015_fantasyfootball_signups.html\" align=\"right\" width=\"205px\"></content:promo>    <p>As the offseason has progressed, the old defensive coordinator has continued to prod his young stud with lessons of the past and players who succeeded with similar, slender body types. </p>    <p> &quot;I watch a lot of Simeon,&quot; Gregory told NFL Media's Tiffany Blackmon from the Rookie Symposium on Thursday. &quot;His length is probably the biggest thing I've taken notice of. He uses it very well and that's something I've really been trying to do. My long arm I think is getting better in camp and it's only going to get better the more I play, and Jason Taylor, he's real athletic, tall guy, long, kind of myself. So they're real athletic. They do a lot of good things and I'm gonna take the things that Coach Marinelli preaches and get off the ball. I'm trying to get off the ball as much as I can.&quot; </p>    <p>Rice compiled 122 career sacks, went to three <a href=\"http://www.nfl.com/probowl\">Pro Bowl</a>s, and played his prime under Marinelli in Tampa where the duo won a <a href=\"http://www.nfl.com/superbowl\">Super Bowl</a> ring.</p>    <p>The <a href=\"http://www.nfl.com/teams/dallascowboys/profile?team=DAL\">Cowboys</a> also want Gregory, who played collegiately at Nebraska, to increase his weight. To that end, Gregory said he's up to 242 on the scale and is supposed to clock in to training camp next month at 245. Gregory added he's not worried about the added weight getting him out of shape after his conditioning troubles early in OTAs. </p>    <p>Aside from packing on the pounds, Gregory said he's been working feverishly on his technique. </p>    <p> &quot;You got to really be a technician,&quot; he said. &quot;That's why guys like <a href=\"http://www.nfl.com/player/j.j.watt/2495488/profile\">J.J. Watt</a>, <a href=\"http://www.nfl.com/player/aldonsmith/2495487/profile\">Aldon Smith</a>, Rice, guys like that, that I've looked at and tried to model my game after, they are just technicians and they do certain things really, really well.&quot; </p>    <p>Gregory has a long, long way to go to even be mentioned in the same sentence with those players. But if he gets close, the <a href=\"http://www.nfl.com/teams/dallascowboys/profile?team=DAL\">Cowboys</a> could have nabbed the steal of the draft. </p>    <p><em>The latest <a href=\"http://www.nfl.com/news\">Around The NFL</a> Podcast <a href=\"http://www.nfl.com/podcasts?id=386ea65cd0ded49d7f690d588bf5902a\" target=\"_self\">discusses the Bills' QB situation</a>, the <a href=\"http://www.nfl.com/player/odellbeckham/2543496/profile\">Odell Beckham</a> Jr. drama and unveils the Superstar Club. Find more <a href=\"http://www.nfl.com/news\">Around The NFL</a> content on <a href=\"http://now.nfl.com/browse/around-the-nfl\" target=\"_self\">NFL NOW</a>.</em></p>   </div>  </body></html>"
}