~/talk

Building an API with Apigility

Talkat PHP UK Conference 2015 · 2015-02-18..02-20· [php, web-platform]
slides:none on file

Apigility claims to remove the boring bits by providing an admin UI and a separate runtime engine, installed via composer, that generates working controllers and factories. It demonstrably creates a one-line ping RPC endpoint and a zero-code database-connected CRUD for an albums table, with JSON/ HAL hypermedia, pagination, validation, and structured errors via http-problem. It supports media-type or URL versioning, method negotiation, OPTIONS, and built-in OAuth2/HTTP auth; demos use curl and return correct status codes and headers.

AI-written summary · about

  1. 0:00Start
  2. 1:36Things to consider
  3. 3:17API Architecture
  4. 7:09Getting Started
  5. 14:54Method negotiation
  6. 15:27OPTIONS handling
  7. 15:56Error reporting (http-problem)
  8. 17:24Accept checking
  9. 19:57Versioning New version changes the namespace
  10. 21:45Two types Database connected API
  11. 41:57Validation
  12. 44:24Documentation
  13. 44:42Code-connected services
  14. 45:03Loan Resource class
  15. 45:30The data model is your code!
  16. 45:41Loan Resource code
  17. 47:12Authentication
  18. 47:47OAuth2 process
  19. 48:06Password grant type Send usemame/password & get back a token - good for trusted clients
  20. 48:43Request authorization code Redirect user to this URL
  21. 49:07Convert authorization code to token
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.