Skip to content

Commit

Permalink
Merge pull request #6 from Healyhatman/development
Browse files Browse the repository at this point in the history
Replace Swagger-Codegen with OpenAPI Generator
  • Loading branch information
Healyhatman authored Jun 29, 2023
2 parents 23ecd11 + 7100c38 commit 5e505da
Show file tree
Hide file tree
Showing 565 changed files with 179,746 additions and 95,346 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Once you have a valid access token, you can instantiate a KeypayPHP\Application,
$application = new \KeypayPHP\Application($access_token);
```
### Access a particular API Group
All of the API classes are available under ``Swagget\Client\Api``. Using ``forApi()`` will allow you to access the API using your application object's transport
All of the API classes are available under ``OpenAPI\Client\Api``. Using ``forApi()`` will allow you to access the API using your application object's transport
```php
$employees = $application->forApi('Swagger\Client\Api\EmployeeApi')->auEmployeeGetEmployees($business_id);
$employees = $application->forApi('\OpenAPI\Client\Api\EmployeeApi')->auEmployeeGetEmployees($business_id);
```

## Testing
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
],
"require": {
"healyhatman/oauth2-keypay" : "^1",
"guzzlehttp/psr7": "^1.5|^2.0",
"guzzlehttp/psr7": "^2.0",
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.5|^7.0"
"guzzlehttp/guzzle": "^7.0"
},
"autoload": {
"psr-4": {
"KeypayPHP\\": "src/KeypayPHP/",
"Swagger\\Client\\" : "src/lib/"
"OpenAPI\\Client\\" : "src/lib/"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Loading

0 comments on commit 5e505da

Please sign in to comment.