Skip to content

iOS code assessment

W.Elsinga edited this page Apr 18, 2018 · 10 revisions

Summary

Create an iOS application written in Swift that fetches JSON data from a API endpoint and displays it using a table view.

You may use any 3rd party

Details

Use the following public API to get JSON formatted data:

URL: (GET) https://api.thedogapi.co.uk/v2/dog.php?limit=100

Sample Response:

{
  "data": [
  	{
      "id": "_NTKEP-FNaR",
      "url": "https://i.thedogapi.co.uk/_NTKEP-FNaR.jpg",
      "time": "2017-06-29T03:14:02.391689",
      "format": "jpeg",
      "verified": "1",
      "checked": "1"
    }
    … <more objects>
    ]
  }

Features

Note: Spend no more than an hour per feature.

  1. Retrieve and print out the data received from the url above.
  2. Parse the data retrieved from the API into a list of objects
  3. Display your objects images in a UITableView or UICollectionView including the time value.