Open mgroves opened 1 year ago
Probably need to put a reasonable limit on limit max size, like maybe 100?
Two possible methods:
Another factor to consider: Caching! Cache results into their own document, to improve performance and reduce strain on query service? Make that a separate ticket?
GET /api/articles
Returns most recent articles globally by default, provide tag, author or favorited query parameter to filter results
Query Parameters:
Filter by tag:
?tag=AngularJS
Filter by author:
?author=jake
Favorited by user:
?favorited=jake
Limit number of articles (default is 20):
?limit=20
Offset/skip number of articles (default is 0):
?offset=0
Authentication optional, will return multiple articles, ordered by most recent first