REST API Module For uHotelBooking System 1

许可: 免费试用 ‎文件大小: 39.94 KB
‎用户评分: 0.0/5 - ‎0 ‎评分

用于 uHotelBooking 系统的 REST API 模块。REST 是 Web 的基本体系结构原则。Web 的惊人事情是,客户端(浏览器)和服务器可以以复杂的方式进行交互,而客户端事先对服务器及其托管的资源没有任何了解。关键约束是服务器和客户端必须同时同意使用的介质,在 Web 的情况下,该媒体是 HTML。遵循 REST 原则的 API 不需要客户端了解 API 的结构。相反,服务器需要提供客户端与服务交互所需的任何信息。HTML 窗体就是一个例子:服务器指定资源的位置和所需的字段。浏览器事先不知道在哪里提交信息,也事先不知道要提交什么信息。这两种形式的信息完全由服务器提供。(此原则称为 HATEOAS。那么,这如何适用于 HTTP,以及如何在实践中实现呢?HTTP 以动词和资源为导向。主流用法中的两个动词是 GET 和 POST,我想每个人都会认出来。但是,HTTP 标准定义了其他几个标准,如 PUT 和 DELETE。然后,根据服务器提供的指令,这些谓词应用于资源。我们为 uHotelBooking 脚本提供 RESP API 模块。有网站管理员或酒店所有者可以访问受保护的网站数据。

版本历史记录

  • 版本 1 发布于 2019-04-23
    错误已修复,功能已改进

软件信息

终端用户许可协议

PHP DataGrid - data grid web control. Copyright 2006 - 2019 Advanced Power of PHP This program is shared software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (GNU LGPL) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This license means you'll have access to the full source code to modify or customize it to your needs: add new features, change the styles, or even optimize the code. It's entirely up to you. You may also use this program in your commercial programs or applications. For more information, please read carefully text of GNU LGPL or any other necessary documents, that may help you to understand it. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.