Skip to content

Service APi

John Gardner edited this page Feb 8, 2017 · 2 revisions

/api/articles

GET /api/articles

GET /api/article?
  where[feedname]=ABC+LOCAL&
  

Params

  • filter
    • []

Response

{
  id: 12321
  feedname: "WTTW",
  url: "http://something.com"
}

GET /api/articles/count

GET /api/article/count?
  where[feedname]=ABC+LOCAL&
  groupBy[][created]=day&groupBy[]=category
where: {
  feedname: "ABC LOCAL",
  created: {gt: 0129219129, lt: 1929312932},
},
groupBy: ["created day", "category"],
sortBy: ["created asc"]

Params

  • where[PROP_NAME] String|{gt,lt,gteq, ltel}
  • groupBy `Array<>

Response

[{
  created: "Nov 12",
  count: 57,
  category: "homicide"
}, {
  created: "Nov 12",
  count: 24, 
  category: "fraud"
}, {
  created: "Nov 13",
  count: 16,
  category: "homicide"
}]
Clone this wiki locally