Use an API contract for testing and development!
summary
Generates a PHP composer package from an OpenAPI YAML, using OpenAPI Generator CLI inside a containerized docker‑compose dev setup; a GitLab pipeline exports the spec as artifacts via a pre‑stage, triggers GitLab downstream pipelines that build and publish the package to the GitLab Package Registry, then a downstream front‑end pipeline installs the package and runs PHPUnit integration tests to detect breaking API changes; works end‑to‑end, though GitLab composer support is limited so Artifactory is suggested.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:06API contracts for development
- 3:55Generate API client from OpenAPI
- 13:47Development environment setup
- 23:07Integrate API client into frontend
- 23:52Publish API client via GitLab
- 34:40Test frontend with API client
- 38:42Recommendations and alternatives
- 40:49Q&A
related talks
10mUsing GitLab Composer Repository To Manage PHP Dependencies
33mA self-describing API
35mAPI-First! Contract-First! Make API development great again!
35mOpensource API Tools to agile your apifirst strategy.
47mContract-Driven API Development with OpenAPI Specification
23mThe fairy tales about API deployments
26mBuilding APIs for Developers & Machines
42mcomposer++
