Recommend this page to a friend! |
Classes of Hicri | PHP Project JWT | README.md | Download |
|
DownloadPHP- CRUD - Rest APISingle file PHP script that adds a REST API to a MySQL database. Requirements- PHP 7.0 or higher with PDO drivers enabled for one of these database systems: - MySQL 5.6 / MariaDB 10.0 or higher for spatial features in MySQL ConfigurationEdit the following lines in the bottom of the file "
FeaturesThe following features are supported: - JWT installment - ElastichSearch V2 LOGIN CRUDThe example login table has only a a few fields:
The CRUD + List operations below act on this table. LoginTo read a record from this table the request can be written in URL format as:
Headers
Body-raw / Json request
Where "1" is the value of the primary key of the record that you want to read. It will return:
On login operations. CreateTo read a record from this table the request can be written in URL format as:
Headers
Body-raw / Json request
Where "1" is the value of the primary key of the record that you want to read. It will return:
On create operations. Read - SingleTo read a record from this table the request can be written in URL format as:
Headers
Body-raw / Json request
Where "1" is the value of the primary key of the record that you want to read. It will return:
On single read operations. ListTo read a record from this table the request can be written in URL format as:
Headers
Body-raw / Json request
Where "1" is the value of the primary key of the record that you want to read. It will return:
On read operations. UpdateTo read a record from this table the request can be written in URL format as:
Headers
Body-raw / Json request
Where "1" is the value of the primary key of the record that you want to read. It will return:
On update operations. DeleteTo read a record from this table the request can be written in URL format as:
Headers
Body-raw / Json request
Where "1" is the value of the primary key of the record that you want to read. It will return:
On delete operations. |