Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

29 lines (26 loc) · 1.03 KB

PHP-REST-native

Sample of REST API build with native PHP.
Use PDO to manipulate MySQL database.
There also sample of client that access the API.

setting

.htaccess

Configure url in .htaccess based with your path

RewriteRule ^(.*)$ /nativerest/api/index.php

client

Configure url in the client code based with API url

$url = 'http://localhost:8080/NativeREST/api/barang';

screenshot

####1. API alt tag

alt tag ####2. Client alt tag

alt tag ####3. Sample Client App alt tag