使⽤Laravel 8
PHP主流框架打造
RESTful APIRESTful API ⾃我介紹 • 王盛立 • 出版過⼀本 使⽤Laravel 8 PHP主流框架打造RESTful API(iT邦幫忙鐵⼈賽系列書) • 浪浪的事 Side Project https://langlangthing.com/ 今⽇菜單 ⾃我介紹 RESTful API Laravel程式範例說明 延伸補充資料 前後端分離 WEB API RESTful RESTful API 是什麼 Representational state transfer (REST) 表現層狀態轉換 Client Server REQUEST RESPONSE GET https://localhost/api/v1/articles/1 HTTP STATUS : 200 OK HTTP 協定 HTTP VERBS. URL. HTTP STATUS. 14:07:22", "updated_at": "2021-09-08 14:07:22" } } 201 CREATED https://localhost/api/v1/articles Headers Headers Body Body REQUEST RESPONSE JSON Accept : application/json Content-Type0 码力 | 22 页 | 3.41 MB | 1 年前3
10 WEB攻击与防护技术 徐震 杨亮 《PHP语⾔程序设计》q DDoS 攻击工具:TFN/TFN 2K .. q 工具变种:红色代码、SQL Slammer DDoS攻击DEMO 风险 n 系统服务中断 n 网络服务中断 n 互联网关键基础设施故障(如DNS等),进而 造成大范围网络中断 防护方法 n 增加资源投入 n 系统优化 n 网络优化 n 抗DDoS设备 64 3.7.认证和会话管理失效 65 应用程序没有对处于各个位置(数据库、文件、目录、备份 等)和生命周期阶段的数据进行合适的安全防护 q 导致恶意的内部攻击者可以窃取相关数据 86 原理 1 受害者输入信用卡号 2 业务网关不可用,因此错 误处理程序记录处理细节 4 恶意内部人员窃取大 量的信用卡号 日志文件 3 IT管理人员访问含有敏感 信息的日志文件 应用代码 账号 财务 管理 事务 通信 特权0 码力 | 114 页 | 3.65 MB | 1 年前3
Falcon v1.4.1 Documentation@falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) Contents 1 Falcon Documentation third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s Learning by Example Here is a simple example from Falcon’s README, showing how to get started writing an API: # things.py # Let's get this party started! import falcon # Falcon follows the REST architectural0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 Documentation@falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) Contents 1 Falcon Documentation third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s Learning by Example Here is a simple example from Falcon’s README, showing how to get started writing an API: # things.py # Let's get this party started! import falcon # Falcon follows the REST architectural0 码力 | 156 页 | 573.94 KB | 1 年前3
Falcon v1.4.1 Documentation@falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) Contents 1 Falcon Documentation third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s Learning by Example Here is a simple example from Falcon’s README, showing how to get started writing an API: # things.py # Let's get this party started! import falcon # Falcon follows the REST architectural0 码力 | 156 页 | 574.46 KB | 1 年前3
Falcon v1.4.1-post-1 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “We have Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 229 页 | 273.39 KB | 1 年前3
Falcon v2.0.0 Documentationin " "the future than in the past." ), 'author': 'Grace Hopper' } resp.media = quote api = falcon.API() api.add_route('/quote', QuoteResource()) Contents 1 Falcon Documentation, Release 2.0.0 2 Python packages. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s Learning by Example Here is a simple example from Falcon’s README, showing how to get started writing an API: # things.py # Let's get this party started! import falcon # Falcon follows the REST architectural0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v1.4.0 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 230 页 | 271.65 KB | 1 年前3
Falcon v1.4.1 Documentationbefore(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) What People are Saying “Falcon Documentation User Guide Introduction Installation Quickstart Tutorial FAQ Classes and Functions The API Class Request & Response Cookies Status Codes Error Handling Media Redirection Middleware Hooks Routing third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s0 码力 | 231 页 | 272.52 KB | 1 年前3
Falcon v1.3.0 Documentation@falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) app.add_route('/items/{id}', CatalogItem()) Contents 1 Falcon Documentation third-party dependencies. Flexible. Falcon leaves a lot of decisions and implementation details to you, the API developer. This gives you a lot of freedom to customize and tune your implementation. Due to Falcon’s Learning by Example Here is a simple example from Falcon’s README, showing how to get started writing an API: # things.py # Let's get this party started! import falcon # Falcon follows the REST architectural0 码力 | 146 页 | 535.22 KB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













