webservice konsep, menggunakan apache, php5, hanya response json
test pada terminal Anda
update
curl -i -H "id: 1" "Accept:application/json" -H "Content-Type:application/json" -XPUT "http://localhost/latihan/wsphpserver/api.php/" -d '{"nama": "termos ubahan","deskripsi":"barang bagus"}'
delete, dikasih header, bukan get url
curl -i -H "id: 1" "Accept:application/json" -XDELETE "http://localhost/latihan/wsphpserver/api.php/"
post
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -XPOST "http://localhost/latihan/wsphpserver/api.php/" -d '{"kode": "x2", "nama": "termos","deskripsi":"barang bagus","id_kantor":"10"}'
get, dengan lebih dari 1 parameter
curl -i -H "Accept:application/json" -H "Content-Type:application/json" -XGET "http://localhost/latihan/wsphpserver/api.php/?action=get_app&id=3"
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"
Daftar Nama Kelompok 4 Agung Permana 1144035 Nurila Faradila Irfan 1144121 Putri Suciani Hafid 1144061 Desi Febrianti 1144005 Ihsan Noor Fauzanie R 1144009 Billy Ramayuda 1144053