As an online customer
I want the app to automatically load my latest image feed
So I can always enjoy the newest images of my friends
Given the customer has connectivity
When the customer requests to see their feed
Then the app should display the latest feed from remote
And replace the cache with the new feed
- URL
- Execute "Load Image Feed" command with above data.
- System downloads data from the URL.
- System validates downloaded data.
- System creates image feed from valid data.
- System delivers image feed.
- URL
- Execute "Load Image Data" command with above data.
- System downloads data from the URL.
- System validates downloaded data.
- System delivers image data.
Property | Type |
---|---|
id |
UUID |
description |
String (optional) |
location |
String (optional) |
url |
URL |
GET /feed
200 RESPONSE
{
"items": [
{
"id": "a UUID",
"description": "a description",
"location": "a location",
"image": "https://a-image.url",
},
{
"id": "another UUID",
"description": "another description",
"image": "https://another-image.url"
},
{
"id": "even another UUID",
"location": "even another location",
"image": "https://even-another-image.url"
},
{
"id": "yet another UUID",
"image": "https://yet-another-image.url"
}
...
]
}