Senior Flutter Developer Bootcamp at Android Enthusiast Jakarta.
As a online user
I want the app to automatically load the crypto feed
So I can see the newest crypto feed
Given the user has connectivity
When the user requests to see the crypto feed
Then the app should display the latest crypto feed from remote
- Execute "Load Crypto Feed" command with above data.
- System downloads data from the URL.
- System validates downloaded data.
- System creates crypto feed from valid data.
- System delivers crypto feed.
- System delivers no crypto feed.
- System delivers invalid data error.
- System delivers connectivity error.
- System delivers unauthorized error.
- System delivers bad request error.
- System delivers server error.
Property | Type |
---|---|
coinInfo |
Entity |
raw |
Object |
Property | Type |
---|---|
id |
String |
name |
String |
fullName |
String |
Property | Type |
---|---|
usd |
Object |
Property | Type |
---|---|
price |
Double |
changePctDay |
Long |
GET /data/top/totaltoptiervolfull
200 RESPONSE
{
"Message": "Success",
"Data": [
{
"CoinInfo": {
"Id": "7605",
"Name": "ETH",
"FullName": "Ethereum"
},
"RAW": {
"USD": {
"PRICE": 2089.29,
"CHANGEPCTDAY": -0.14911035600096975
}
}
},
{
"CoinInfo": {
"Id": "1182",
"Name": "BTC",
"FullName": "Bitcoin"
},
"RAW": {
"USD": {
"PRICE": 2089.29,
"CHANGEPCTDAY": -0.14911035600096975
}
}
}
]
}