使⽤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
CakePHP Cookbook Documentation 5.xLevels Logging Scopes Logging to Files Logging to Syslog Creating Log Engines Logging Formatters Log API Log Convenience Methods Logging Trait LogTrait Using Monolog Modelless Forms Form Creating a but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing community and gain instant fame and fortune. The API https://api.cakephp.org/ Straight to the point and straight from the core developers, the CakePHP API (Application Programming Interface) is the most0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620 Log API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing community and gain instant fame and fortune. The API https://api.cakephp.org/ Straight to the point and straight from the core developers, the CakePHP API (Application Programming Interface) is the most0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
Levels Logging Scopes Logging to Files Logging to Syslog Creating Log Engines Logging Formatters Log API Log Convenience Methods Logging Trait LogTrait Using Monolog Modelless Forms Form Creating a Collections Making Collections Rewindable Cloning Collections Folder & File Basic Usage Folder API Folder File API File Hash Hash Hash Path Syntax Expression Types Attribute Matching Types Http Client but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
Streams Using the FileLog Adapter Logging to Syslog Writing to Logs Using Levels Logging Scopes Log API Convenience Methods Logging Trait Using Monolog Modelless Forms Creating a Form Setting Form Values Collections Making Collections Rewindable Cloning Collections Folder & File Basic Usage Folder API File API Hash Hash Path Syntax Expression Types Attribute Matching Types Http Client Doing Requests but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 747 Log API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863 Folder API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864 File API . . . . . . . . . . . . . . . . . . . . but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 728 Log API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853 Folder API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 854 File API . . . . . . . . . . . . . . . . . . . . but will remain longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing0 码力 | 967 页 | 2.88 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
共 78 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













