REST API Module For uHotelBooking SystemREST API Module For uHotelBooking System
REST API module provides all CRUD (Create, Read, Update, Delete) and some extra operations with uHotelbooking database.REST API Module For uHotelBooking System
REST API module provides all CRUD (Create, Read, Update, Delete) and some extra operations with u...Overview
REST is the underlying architectural principle of the web. The amazing thing about the web is the fact that clients (browsers) and servers can interact in complex ways without the client knowing anything beforehand about the server and the resources it hosts.
The key constraint is that the server and client must both agree on the media used, which in the case of the web is HTML.An API that adheres to the principles of REST does not require the client to know anything about the structure of the API. Rather, the server needs to provide whatever information the client needs to interact with the service. An HTML form is an example of this: The server specifies the location of the resource, and the required fields. The browser doesn't know in advance where to submit the information, and it doesn't know in advance what information to submit. Both forms of information are entirely supplied by the server. (This principle is called HATEOAS.)So, how does this apply to HTTP, and how can it be implemented in practice? HTTP is oriented around verbs and resources.
The two verbs in mainstream usage are GET and POST, which I think everyone will recognize. However, the HTTP standard defines several others such as PUT and DELETE. These verbs are then applied to resources, according to the instructions provided by the server.We provide RESP API module for uHotelBooking script.
There are site admins or hotel owners who can access protected site data.
Features
- Single PHP file, easy to deploy.
- Very little code, easy to adapt and maintain
- Streaming data, low memory footprint
- Supports POST variables as input
- Supports a JSON object as input
- Condensed JSON ouput: first row contains field names
- Sanitize and validate input using callbacks
- Permission system for databases, tables, columns and records
- Multi-tenant database layouts are supported
- Both JSONP and CORS support for cross-domain requests
- Combined requests with support for multiple table names
- Search support on multiple criteria
- Pagination, sorting and column selection
- Relation detection and filtering on foreign keys
- Relation "transforms" for PHP and JavaScript
- Binary fields supported with base64 encoding
- Generate API documentation using Swagger tools
Requirements
- PHP 5.3 or higher with MySQLi
- uHotelBooking script v2.4.0 or above
Instructions
Other items by this author
Category | Scripts & Code / PHP Scripts / Booking |
First release | 17 August 2018 |
Last update | 17 August 2018 |
Files included | .php, .css, .html, .sql, Javascript .js |
Software version | PHP 7.0, PHP 5.4, PHP 5.5, PHP 5.6 |
Tags | php hotel booking, hotel reservation system, booking software, hotel reservation software, online booking system, software booking online, online booking software, php reservation system, php booking script, property nanagement system, hotel operating system, rest api |