Why
The users can upload CSV files multiple times. Each file can contain many keywords. Each upload is kept on track with an upload ID.
Create a Restful API to allow the user to get a list of keywords based on the upload ID along with the search result statistic. It means the API should return parsed terms from a CSV file along with the search statistic for each term.
Acceptance Criteria
The API must meet the following conditions:
- JSON API standard must be followed
- Only authenticated user can consume the API
- Accept an upload ID
- Return keywords belong to that upload
- Paginate the result
- Each keyword must come with the following search results statistic:
- Number of AdWords advertisers in the top position
- Total number of AdWords advertisers on the page
- URLs of the AdWords advertisers in the top position
- Number of the non-AdWords results on the page
- Total number of links (all of them) on the page
- HTML code of the page/cache of the page.