API-first and REST, can they complement each other?
summary
API-first at Adobe’s AM org shifts 90% of effort to design and yields parallel development: UI and backend teams build against an OpenAPI contract, then run contract tests when implementation appears. Validation uses rest-assured plus the Swagger request validator to check request/response pairs and schemas. Apache Sling needs a dedicated servlet context and operation-level handlers (so codegen cannot emit AM servlets, only models/clients). JSON Patch/JSON Merge Patch, Problem Details and Sunset headers are recommended; the content-fragments editor is built this way and works.
AI-written summary · about
