This library provides console commands to work with synchronous APIs.
composer require --dev spryker-sdk/sync-api
composer test- This will execute the tests.composer cs-check- This will run CodeStyle checks.composer cs-fix- This will fix fixable CodeStyles.composer stan- This will run PHPStan checks.
Documentation
The following console commands are available:
vendor/bin/syncapi schema:openapi:createvendor/bin/syncapi schema:openapi:validatevendor/bin/syncapi code:openapi:generate
The vendor/bin/syncapi schema:openapi:create adds a minimal OpenAPI file.
The vendor/bin/syncapi schema:openapi:validate validates an OpenAPI file.
The vendor/bin/syncapi code:openapi:generate reads an existing OpenAPI file and creates code out of it.