使⽤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 2.x
request cycle Benefits Where to Get Help The Official CakePHP website The Cookbook The Bakery The API The Test Cases The IRC channel Official CakePHP Forum Stackoverflow Where to get Help in your Language Element Caching Elements Requesting Elements from a Plugin 2.0 2.1 Creating your own view classes View API More about Views Themes Media Views JSON and XML views Helpers Models Understanding Models More ConsoleOptionParser from an array Getting help from shells Getting help as XML Routing in shells / CLI Shell API More topics Shell Helpers Running Shells as cronjobs Completion Shell Code Generation with Bake Schema0 码力 | 1096 页 | 958.62 KB | 1 年前3
《Slides Dev Web》 09. Services Web
Système distribué importance de l’architecture : – orientée ressource1 : atome : ressource (donnée) : REST – orientée service2 : atome : service (traitement) : RPC (SOAP) 1https://en.wikipedia.org/wiki/R distribuées3 pour l’entreprise – Mashups4 d’applications web (exemples5) – Applications Facebook, API Google6 – IFTTT7 • Consommer un service web ≠ Créer un service web SOAP • AVANT : Simple Object services web – annuaire d’interfaces de services web décrites en WSDL • Tutorial WSDL/UDDI w3schools11 REST : REpresentational State Transfer • Style d’architecture sur lequel a été bâti le web • Architecture0 码力 | 6 页 | 47.90 KB | 1 年前3
Falcon v2.0.0 Documentationunnecessary abstractions. Falcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET requests""" in " "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 do as little as possible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error0 码力 | 184 页 | 671.87 KB | 1 年前3
CakePHP Cookbook 2.x
classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 View API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547 Shell API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617 REST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 820 页 | 2.52 MB | 1 年前3
Falcon v2.0.0 Documentationunnecessary abstractions. Falcon cuts to the chase with a clean design that embraces HTTP and the REST architectural style. class QuoteResource: def on_get(self, req, resp): """Handles GET " ), 'author': 'Grace Hopper' } resp.media = quote api = falcon.API() api.add_route('/quote', QuoteResource()) What People are Saying “We have been using Falcon tries to do as little as possible while remaining highly effective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses0 码力 | 265 页 | 299.57 KB | 1 年前3
Falcon v1.3.0 Documentationembraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) do as little as possible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural style, and tries to do as little as possible while remaining highly effective. Falcon0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v1.3.0 Documentationand the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks tries to do as little as possible while remaining highly effective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses 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 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.4.1 Documentationembraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) do as little as possible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural style, and tries to do as little as possible while remaining highly effective. Falcon0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 Documentationembraces HTTP and the REST architectural style. class CatalogItem(object): # ... @falcon.before(hooks.to_oid) def on_get(self, id): return self._collection.find_one(id) app = falcon.API(after=[hooks.serialize]) do as little as possible while remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error high-performance Python web framework for building large-scale app backends and microservices. It encourages the REST architectural style, and tries to do as little as possible while remaining highly effective. Falcon0 码力 | 156 页 | 573.94 KB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













