An open API service indexing awesome lists of open source software.

https://github.com/travelxml/rest-api-curd-php-pdo-jwt-with-unit-testing-examples

Rest API with CURD, PHP PDO, UNIT Testing, JWT, EXAMPLES
https://github.com/travelxml/rest-api-curd-php-pdo-jwt-with-unit-testing-examples

api api-rest api-server api-testing apis httprequest json-api jwt-authentication lamp php7 phpunit-tests rest rest-api restful-api

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
#### Twitter: https://twitter.com/htngapi
#### Linkedin: https://www.linkedin.com/in/travel-technology-cto/