markgravity / golang-ic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Backend] As a user, I can view the list of keywords.

markgravity opened this issue · comments

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
  • 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