Skip to content

TravelXML/REST-API-CURD-PHP-PDO-JWT-WITH-UNIT-TESTING-EXAMPLES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST-API-CURD-PHP-PDO-JWT-WITH-UNIT-TESTING-EXAMPLES

Rest API with CURD, PHP PDO, UNIT Testing, JWT, EXAMPLES

Create a RESTful web service for a Library. The service must have the following API endpoints:

(C)reate a new Book
(R)ead existing Books
(U)pdate an existing Book
(D)elete an existing Book

A Book entity has the following properties:

Author (mandatory)
Title (mandatory)
ISBN (mandatory)
Release Date

Implementation

Every serivce you call, needs to have the Auth & action and these are compulsory apart from the other parameters.
Auth : Auth Token to send via request header for all requests [eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidXNlcl9uYW1lIjoic2FwYW4iLCJlbWFpbCI6ImN0b2F0dHJhdmVsdGVjaEBnbWFpbC5jb20ifQ.YuuHvX8IdNFugj0_1xiEbZ9f54PAnaExO9Xv_rjB4Rg]
Request : All request should be POST JSON data, specifications are mentioned below
Response : JSON data

For Support, you can reach me


Skype: sapan.mohannty