使⽤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
Falcon v2.0.0 Documentation" ), 'author': 'Grace Hopper' } resp.media = quote api = falcon.API() api.add_route('/quote', QuoteResource()) What People are Saying “We have been using Falcon secure APIs 100% code coverage with a comprehensive test suite No dependencies on other Python packages Supports Python 2.7, 3.5+ Compatible with PyPy Who’s Using Falcon? Falcon is used around the world 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 Routing0 码力 | 265 页 | 299.57 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 APIs 100% code coverage with a comprehensive test suite Only depends on six and mimeparse Supports Python 2.6, 2.7, 3.3, 3.4 and 3.6 Compatible with PyPy and Jython Who’s Using Falcon? Falcon is used around 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 Routing0 码力 | 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 APIs 100% code coverage with a comprehensive test suite Only depends on six and mimeparse Supports Python 2.6, 2.7, 3.3, 3.4 and 3.6 Compatible with PyPy and Jython Who’s Using Falcon? Falcon is used around 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 Routing0 码力 | 231 页 | 272.52 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 APIs 100% code coverage with a comprehensive test suite Only depends on six and mimeparse Supports Python 2.6, 2.7, 3.3, 3.4 and 3.6 Compatible with PyPy and Jython Who’s Using Falcon? Falcon is used around 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 Routing0 码力 | 229 页 | 273.39 KB | 1 年前3
Falcon v3.1.1 Documentationreadthedocs.io/en/stable/community/help.html] - reference [https://falcon.readthedocs.io/en/stable/api/index.html]) Falcon add-ons and complementary packages [https://github.com/falconry/falcon/wiki] Falcon routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to - Antoine de Saint-Exupéry Falcon [https://falconframework.org] is a reliable, high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural0 码力 | 540 页 | 476.60 KB | 1 年前3
Falcon v3.1.1-rc1 Documentationreadthedocs.io/en/stable/community/help.html] - reference [https://falcon.readthedocs.io/en/stable/api/index.html]) Falcon add-ons and complementary packages [https://github.com/falconry/falcon/wiki] Falcon routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to - Antoine de Saint-Exupéry Falcon [https://falconframework.org] is a reliable, high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural0 码力 | 540 页 | 476.61 KB | 1 年前3
Falcon v3.1.1-b3 Documentationreadthedocs.io/en/stable/community/help.html] - reference [https://falcon.readthedocs.io/en/stable/api/index.html]) Falcon add-ons and complementary packages [https://github.com/falconry/falcon/wiki] Falcon routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to - Antoine de Saint-Exupéry Falcon [https://falconframework.org] is a reliable, high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural0 码力 | 540 页 | 476.61 KB | 1 年前3
Falcon v3.1.1-a Documentationreadthedocs.io/en/stable/community/help.html] - reference [https://falcon.readthedocs.io/en/stable/api/index.html]) Falcon add-ons and complementary packages [https://github.com/falconry/falcon/wiki] Falcon routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to - Antoine de Saint-Exupéry Falcon [https://falconframework.org] is a reliable, high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural0 码力 | 540 页 | 476.60 KB | 1 年前3
Falcon v3.1.1-b1 Documentationreadthedocs.io/en/stable/community/help.html] - reference [https://falcon.readthedocs.io/en/stable/api/index.html]) Falcon add-ons and complementary packages [https://github.com/falconry/falcon/wiki] Falcon routing and state management Stable interfaces with an emphasis on backwards-compatibility Simple API modeling through centralized RESTful routing Highly-optimized, extensible code base Easy access to - Antoine de Saint-Exupéry Falcon [https://falconframework.org] is a reliable, high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural0 码力 | 540 页 | 476.61 KB | 1 年前3
共 80 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













