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: 5 months ago
JSON representation
Rest API with CURD, PHP PDO, UNIT Testing, JWT, EXAMPLES
- Host: GitHub
- URL: https://github.com/travelxml/rest-api-curd-php-pdo-jwt-with-unit-testing-examples
- Owner: TravelXML
- License: mit
- Created: 2020-06-26T07:08:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T09:21:11.000Z (over 5 years ago)
- Last Synced: 2025-03-14T06:14:36.162Z (9 months ago)
- Topics: api, api-rest, api-server, api-testing, apis, httprequest, json-api, jwt-authentication, lamp, php7, phpunit-tests, rest, rest-api, restful-api
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/