DartFeed API Specification
Name
Description
Validation
Notes
popular
Popular articles
Bool
Not currently used by app
offset
To get article and onwards
Number
Needs to be implemented
limit
Limit the number of articles returned
Number
Needs to be implemented
curl -i http://127.0.0.1:8000/api/articles?popular=true
Array of articles with each article defined by:
Name
Description
Validation
title
Article title
String
linkURL
Link to article
String
summary
Snippet/summary
String
source
Publisher
String
imgURL
Image URL for article
String
date
Date of publication
ISO:8601 String (use Date.prototype.toJSON())
categories
Our assigned categories
Array of Strings
curl -i http://127.0.0.1:8000/api/articles -H "Content-Type: application/json" -d '[{"title":"TensorFlow and Monetizing Intellectual Property","linkURL":"test","summary":"test","source":"bleh","imgURL":"gah","date":"1995-12-17T11:24:00.000Z","categories":["Startups","bleh","Money","JavaS"]},{"title":"Another Article","linkURL":"test","summary":"test","source":"bleh","imgURL":"gah","date":"1995-12-17T11:24:00.000Z","categories":["Startups","bleh","x"]}]';
curl -i http://127.0.0.1:8000/api/users
curl -i http://127.0.0.1:8000/api/user/56453c61deffcac712aadc6b
curl -i http://http://localhost:8000/api/categories
curl -i -X PUT -H "Content-Type: application/json" http://localhost:8000/api/categories -d '{"categories" : {"category":"C"}}'