Please make a new branch to develop a new endpoint:
GET /posts
which has the following query parameters:
limit(optional): to limit how many posts in the return body. If not specified, default is 200.
title(optional): to search posts including the value in title (case insensitive, not exact match).
'sort' (optional): to make title and/or createdAt sortable. Some example use cases are:
-- sort=title: Sort by ascending title.
-- sort=title:desc: Sort by descending title.
-- sort=title,createdAt: Sort by ascending title, then ascending createdAt.
-- `sort=createdAt:desc,title: Sort by descending createdAt, then ascending title.
Every post returned should come with the owner (user) first and last name.
Please make a new branch to develop a new endpoint:
GET /posts
which has the following query parameters:
limit
(optional): to limit how many posts in the return body. If not specified, default is 200.title
(optional): to search posts including the value in title (case insensitive, not exact match).title
and/orcreatedAt
sortable. Some example use cases are: --sort=title
: Sort by ascending title. --sort=title:desc
: Sort by descending title. --sort=title,createdAt
: Sort by ascending title, then ascending createdAt. -- `sort=createdAt:desc,title: Sort by descending createdAt, then ascending title.Every post returned should come with the owner (user) first and last name.