Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ get, 1 parameter
**http://localhost/latihan/wsphpserver/api.php/?action=get_app_list**
```
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -XGET "http://localhost/latihan/wsphpserver/api.php/?action=get_app_list"
```
```
Kelompok : 3
Nama : Andi Rahmat Hidayat (1144102)
Anggi Sholihatus Sadiah (1144016)
Diana Asri Wijayanti (1144088)
Herlin Restusari (1144008)
Muhammad Firman Kahfi (1144015)
Septian Firmansyah (1144071)

D4 TI 2B ANGKATAN 2014
4 changes: 2 additions & 2 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function get_app_by_id($id)
// build JSON array.
switch ($id){
case 1:
$app_info = array("app_name" => "Web Demo", "app_price" => "Free", "app_version" => "2.0");
$app_info = array("Nama Barang" => "Web Demo", "app_price" => "Free", "app_version" => "2.0");
break;
case 2:
$app_info = array("app_name" => "Audio Countdown", "app_price" => "Free", "app_version" => "1.1");
$app_info = array( "Nama Barang" => "Kayu Jati", "Nama Vendor" => "PT Diamond Utama", "Qty" => "2","Harga Satuan" => "1.000.000");
break;
case 3:
$app_info = array("app_name" => "The Tab Key", "app_price" => "Free", "app_version" => "1.2");
Expand Down