Skip to content

About

webservice konsep, menggunakan apache, php5, hanya response json

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

wsphpserver

webservice konsep, menggunakan apache, php5, hanya response json



Kelompok 2 WEB SERVICE .

Nama : Aldy Muldani NPM : 1144123

Nama : Suriadi Zainuddin NPM : 1144092

Nama : Chandra Ahmad Rizki NPM : 1144049

Nama : Yanda Rizky Prasetiya NPM : 1144004

Nama : M Akbar Thamrin NPM : 1144012

Nama : Faudzan Dzulfaqor NPM : 1144


Cara Pakai

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"

About

webservice konsep, menggunakan apache, php5, hanya response json

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages