- Place the OpenAPI spec in
config/jane-openapi-php. - Run
ddev php vendor/bin/jane-openapi generate --config-file=./config/jane-openapi.php- This will generate the API client in
app/Weclapp/generated
- This will generate the API client in
Example usage:
<?php
use Webhub\Weclapp\Client;
class WeclappTest extends Command
{
public function handle()
{
$weclappClient = Client::create();
$result = $weclappClient->getArticleCount();
...
}
}