Skip to content

Commit 7ee7841

Browse files
committed
Add unique id to an item
1 parent 29187d8 commit 7ee7841

File tree

10 files changed

+160
-80
lines changed

10 files changed

+160
-80
lines changed

fruitties-api/0.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,50 @@
55
{
66
"name": "Apple",
77
"full_name": "Malus domestica",
8-
"calories": "95 calories"
8+
"calories": "95 calories",
9+
"id": 0
910
},
1011
{
1112
"name": "Banana",
1213
"full_name": "Musa acuminata",
13-
"calories": "105 calories"
14+
"calories": "105 calories",
15+
"id": 1
1416
},
1517
{
1618
"name": "Orange",
1719
"full_name": "Citrus × sinensis",
18-
"calories": "62 calories"
20+
"calories": "62 calories",
21+
"id": 2
1922
},
2023
{
2124
"name": "Grapes",
2225
"full_name": "Vitis vinifera",
23-
"calories": "69 calories"
26+
"calories": "69 calories",
27+
"id": 3
2428
},
2529
{
2630
"name": "Strawberry",
2731
"full_name": "Fragaria × ananassa",
28-
"calories": "4 calories"
32+
"calories": "4 calories",
33+
"id": 4
2934
},
3035
{
3136
"name": "Watermelon",
3237
"full_name": "Citrullus lanatus",
33-
"calories": "30 calories"
38+
"calories": "30 calories",
39+
"id": 5
3440
},
3541
{
3642
"name": "Pineapple",
3743
"full_name": "Ananas comosus",
38-
"calories": "50 calories"
44+
"calories": "50 calories",
45+
"id": 6
3946
},
4047
{
4148
"name": "Mango",
4249
"full_name": "Mangifera indica",
43-
"calories": "60 calories"
50+
"calories": "60 calories",
51+
"id": 7
4452
}
4553
]
4654
}

fruitties-api/1.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,50 @@
55
{
66
"name": "Kiwi",
77
"full_name": "Actinidia deliciosa",
8-
"calories": "61 calories"
8+
"calories": "61 calories",
9+
"id": 8
910
},
1011
{
1112
"name": "Pear",
1213
"full_name": "Pyrus communis",
13-
"calories": "102 calories"
14+
"calories": "102 calories",
15+
"id": 9
1416
},
1517
{
1618
"name": "Peach",
1719
"full_name": "Prunus persica",
18-
"calories": "59 calories"
20+
"calories": "59 calories",
21+
"id": 10
1922
},
2023
{
2124
"name": "Plum",
2225
"full_name": "Prunus domestica",
23-
"calories": "46 calories"
26+
"calories": "46 calories",
27+
"id": 11
2428
},
2529
{
2630
"name": "Cherry",
2731
"full_name": "Prunus avium",
28-
"calories": "50 calories"
32+
"calories": "50 calories",
33+
"id": 12
2934
},
3035
{
3136
"name": "Blueberry",
3237
"full_name": "Vaccinium corymbosum",
33-
"calories": "57 calories"
38+
"calories": "57 calories",
39+
"id": 13
3440
},
3541
{
3642
"name": "Raspberry",
3743
"full_name": "Rubus idaeus",
38-
"calories": "53 calories"
44+
"calories": "53 calories",
45+
"id": 14
3946
},
4047
{
4148
"name": "Lemon",
4249
"full_name": "Citrus limon",
43-
"calories": "29 calories"
50+
"calories": "29 calories",
51+
"id": 15
4452
}
4553
]
4654
}

fruitties-api/2.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,50 @@
55
{
66
"name": "Lime",
77
"full_name": "Citrus aurantiifolia",
8-
"calories": "30 calories"
8+
"calories": "30 calories",
9+
"id": 16
910
},
1011
{
1112
"name": "Papaya",
1213
"full_name": "Carica papaya",
13-
"calories": "59 calories"
14+
"calories": "59 calories",
15+
"id": 17
1416
},
1517
{
1618
"name": "Avocado",
1719
"full_name": "Persea americana",
18-
"calories": "160 calories"
20+
"calories": "160 calories",
21+
"id": 18
1922
},
2023
{
2124
"name": "Pomegranate",
2225
"full_name": "Punica granatum",
23-
"calories": "83 calories"
26+
"calories": "83 calories",
27+
"id": 19
2428
},
2529
{
2630
"name": "Cranberry",
2731
"full_name": "Vaccinium macrocarpon",
28-
"calories": "46 calories"
32+
"calories": "46 calories",
33+
"id": 20
2934
},
3035
{
3136
"name": "Apricot",
3237
"full_name": "Prunus armeniaca",
33-
"calories": "15 calories"
38+
"calories": "15 calories",
39+
"id": 21
3440
},
3541
{
3642
"name": "Fig",
3743
"full_name": "Ficus carica",
38-
"calories": "74 calories"
44+
"calories": "74 calories",
45+
"id": 22
3946
},
4047
{
4148
"name": "Guava",
4249
"full_name": "Psidium guajava",
43-
"calories": "68 calories"
50+
"calories": "68 calories",
51+
"id": 23
4452
}
4553
]
4654
}

fruitties-api/3.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,50 @@
55
{
66
"name": "Blackberry",
77
"full_name": "Rubus fruticosus",
8-
"calories": "43 calories"
8+
"calories": "43 calories",
9+
"id": 24
910
},
1011
{
1112
"name": "Passion Fruit",
1213
"full_name": "Passiflora edulis",
13-
"calories": "17 calories"
14+
"calories": "17 calories",
15+
"id": 25
1416
},
1517
{
1618
"name": "Dragon Fruit",
1719
"full_name": "Hylocereus spp.",
18-
"calories": "60 calories"
20+
"calories": "60 calories",
21+
"id": 26
1922
},
2023
{
2124
"name": "Cantaloupe",
2225
"full_name": "Cucumis melo",
23-
"calories": "34 calories"
26+
"calories": "34 calories",
27+
"id": 27
2428
},
2529
{
2630
"name": "Persimmon",
2731
"full_name": "Diospyros kaki",
28-
"calories": "81 calories"
32+
"calories": "81 calories",
33+
"id": 28
2934
},
3035
{
3136
"name": "Elderberry",
3237
"full_name": "Sambucus spp.",
33-
"calories": "73 calories"
38+
"calories": "73 calories",
39+
"id": 29
3440
},
3541
{
3642
"name": "Lychee",
3743
"full_name": "Litchi chinensis",
38-
"calories": "66 calories"
44+
"calories": "66 calories",
45+
"id": 30
3946
},
4047
{
4148
"name": "Starfruit",
4249
"full_name": "Averrhoa carambola",
43-
"calories": "31 calories"
50+
"calories": "31 calories",
51+
"id": 31
4452
}
4553
]
4654
}

fruitties-api/4.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,50 @@
55
{
66
"name": "Coconut",
77
"full_name": "Cocos nucifera",
8-
"calories": "354 calories"
8+
"calories": "354 calories",
9+
"id": 32
910
},
1011
{
1112
"name": "Date",
1213
"full_name": "Phoenix dactylifera",
13-
"calories": "282 calories"
14+
"calories": "282 calories",
15+
"id": 33
1416
},
1517
{
1618
"name": "Goji Berry",
1719
"full_name": "Lycium barbarum",
18-
"calories": "349 calories"
20+
"calories": "349 calories",
21+
"id": 34
1922
},
2023
{
2124
"name": "Acai Berry",
2225
"full_name": "Euterpe oleracea",
23-
"calories": "70 calories"
26+
"calories": "70 calories",
27+
"id": 35
2428
},
2529
{
2630
"name": "Jackfruit",
2731
"full_name": "Artocarpus heterophyllus",
28-
"calories": "95 calories"
32+
"calories": "95 calories",
33+
"id": 36
2934
},
3035
{
3136
"name": "Durian",
3237
"full_name": "Durio zibethinus",
33-
"calories": "147 calories"
38+
"calories": "147 calories",
39+
"id": 37
3440
},
3541
{
3642
"name": "Mulberry",
3743
"full_name": "Morus spp.",
38-
"calories": "43 calories"
44+
"calories": "43 calories",
45+
"id": 38
3946
},
4047
{
4148
"name": "Gooseberry",
4249
"full_name": "Ribes uva-crispa",
43-
"calories": "44 calories"
50+
"calories": "44 calories",
51+
"id": 39
4452
}
4553
]
4654
}

fruitties-api/5.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,50 @@
55
{
66
"name": "Nectarine",
77
"full_name": "Prunus persica var. nucipersica",
8-
"calories": "44 calories"
8+
"calories": "44 calories",
9+
"id": 40
910
},
1011
{
1112
"name": "Grapefruit",
1213
"full_name": "Citrus × paradisi",
13-
"calories": "42 calories"
14+
"calories": "42 calories",
15+
"id": 41
1416
},
1517
{
1618
"name": "Kumquat",
1719
"full_name": "Citrus japonica",
18-
"calories": "71 calories"
20+
"calories": "71 calories",
21+
"id": 42
1922
},
2023
{
2124
"name": "Plantain",
2225
"full_name": "Musa paradisiaca",
23-
"calories": "122 calories"
26+
"calories": "122 calories",
27+
"id": 43
2428
},
2529
{
2630
"name": "Soursop",
2731
"full_name": "Annona muricata",
28-
"calories": "66 calories"
32+
"calories": "66 calories",
33+
"id": 44
2934
},
3035
{
3136
"name": "Tamarind",
3237
"full_name": "Tamarindus indica",
33-
"calories": "239 calories"
38+
"calories": "239 calories",
39+
"id": 45
3440
},
3541
{
3642
"name": "Ugli fruit",
3743
"full_name": "Citrus reticulata × Citrus paradisi",
38-
"calories": "47 calories"
44+
"calories": "47 calories",
45+
"id": 46
3946
},
4047
{
4148
"name": "Yuzu",
4249
"full_name": "Citrus junos",
43-
"calories": "29 calories"
50+
"calories": "29 calories",
51+
"id": 47
4452
}
4553
]
4654
}

0 commit comments

Comments
 (0)