Skip to content

Commit 5dd88da

Browse files
committed
code reformat
documentation added to git
1 parent 7b6090f commit 5dd88da

File tree

94 files changed

+21674
-448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+21674
-448
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ composer.phar
1313

1414
# PHPUnit cache
1515
.phpunit.result.cache
16-
/doc/

.openapi-generator/config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ additionalProperties:
1212
appDescription: PHP API client for CSAS Premium Accounts WebAPI
1313
apiVersion: 3.0.0
1414
allowUnicodeIdentifiers: true
15-
invokerPackage: SpojeNET\\CsasAccountsApi
15+
invokerPackage: SpojeNET\CsasAccountsApi
1616
modelPackage: Model
1717
developerOrganization: SpojeNET
1818
developerOrganizationUrl: https://spojenet.cz
1919
variableNamingConvention: camelCase
2020
composerPackageName: spojenet/csas-accountsapi
21-
# composer.json.mustache:
22-
# folder: .
23-
# destinationFilename: composer.json
21+
composer.mustache:
22+
folder: .
23+
destinationFilename: composer.json

.openapi-generator/templates/composer.json.mustache renamed to .openapi-generator/templates/composer.mustache

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,11 @@
4545
},
4646
"autoload-dev": {
4747
"psr-4": { "{{escapedInvokerPackage}}\\Test\\" : "{{testBasePath}}/" }
48+
},
49+
"scripts": {
50+
"post-update-cmd": [
51+
"npx openapi-generator-cli generate -i openapi.yml -g php --git-user-id Spoje-NET --git-repo-id php-csas-webapi -c .openapi-generator/config.yaml",
52+
"vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --verbose --allow-risky=yes"
53+
]
4854
}
4955
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ vendor: composer.json composer.lock ## Installs composer dependencies
2121

2222
.PHONY: cs
2323
cs: ## Update Coding Standards
24-
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --verbose
24+
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --verbose --allow-risky=yes
2525

2626
clean: ## Removes all generated files
2727
rm -rf vendor

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ require_once(__DIR__ . '/vendor/autoload.php');
5151

5252

5353

54-
$apiInstance = new SpojeNET\\CsasWebApi\Api\DefaultApi(
54+
$apiInstance = new SpojeNET\CsasAccountsApi\Api\DefaultApi(
5555
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
5656
// This is optional, `GuzzleHttp\Client` will be used as default.
5757
new GuzzleHttp\Client()

composer.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
"php",
99
"sdk",
1010
"rest",
11-
"api"
11+
"api",
12+
"csas",
13+
"Česká Spořitelna",
14+
"Spořka"
1215
],
1316
"homepage": "https://github.com/Spoje-NET/php-csas-webapi",
1417
"license": "MIT",
1518
"authors": [
1619
{
17-
"name": "SpojeNET",
18-
"homepage": "https://spojenet.cz"
20+
"name": "Vítězslav Dvořák",
21+
"email": "[email protected]",
22+
"homepage": "https://spojenet.cz/"
1923
}
2024
],
2125
"require": {
@@ -24,16 +28,23 @@
2428
"ext-json": "*",
2529
"ext-mbstring": "*",
2630
"guzzlehttp/guzzle": "^7.3",
27-
"guzzlehttp/psr7": "^1.7 || ^2.0"
31+
"guzzlehttp/psr7": "^1.7 || ^2.0",
32+
"vitexsoftware/ease-core": ">=1.41"
2833
},
2934
"require-dev": {
3035
"phpunit/phpunit": "^8.0 || ^9.0",
3136
"friendsofphp/php-cs-fixer": "^3.5"
3237
},
3338
"autoload": {
34-
"psr-4": { "SpojeNET\\\\CsasWebApi\\" : "lib/" }
39+
"psr-4": { "SpojeNET\\CsasAccountsApi\\" : "lib/" }
3540
},
3641
"autoload-dev": {
37-
"psr-4": { "SpojeNET\\\\CsasWebApi\\Test\\" : "test/" }
42+
"psr-4": { "SpojeNET\\CsasAccountsApi\\Test\\" : "test/" }
43+
},
44+
"scripts": {
45+
"post-update-cmd": [
46+
"npx openapi-generator-cli generate -i openapi.yml -g php --git-user-id Spoje-NET --git-repo-id php-csas-webapi -c .openapi-generator/config.yaml",
47+
"vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --verbose --allow-risky=yes"
48+
]
3849
}
3950
}

doc/OpenAPI Specification - Version 3.1.0 _ Swagger.html

Lines changed: 3043 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 26 additions & 0 deletions
Loading
Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)