[Backend] As a user, I can view the list of keywords.
markgravity opened this issue · comments
Mark G commented
Acceptance Criteria
- Create a new query to the database to get keywords from the
keywords
table, filter it by these parameters- page: current page (it's calculated from the total items and
size
) - size: number of items per page
- page: current page (it's calculated from the total items and
- Return an array of
Keyword
model - Keyword
{
"type": "keyword",
"id": 100,
"attributes": {
"text": "d4",
"status": "completed",
"created_at": "2021-04-02T09:55:13Z",
"updated_at": "2021-04-02T09:55:13Z"
}
}
For example:
keywords: a,b,c
input: page = 2, size =1
output: b