Skip to content

Commit

Permalink
credentials endpoint update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Jan 6, 2025
1 parent 6184ce9 commit 83dfdcf
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['7.4', '8.0', '8.1', '8.2']
php-versions: ['7.4', '8.0', '8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ lib/Model/Configuration.php
lib/Model/Credential.php
lib/Model/CredentialType.php
lib/Model/Customer.php
lib/Model/GetCredential200Response.php
lib/Model/GetCredentialType200Response.php
lib/Model/GetTopic200Response.php
lib/Model/Job.php
Expand All @@ -30,6 +29,7 @@ lib/Model/RunTemplate.php
lib/Model/Status.php
lib/Model/Tag.php
lib/Model/Topic.php
lib/Model/UpdateCredentials201Response.php
lib/Model/User.php
lib/Server/AbstractAppApi.php
lib/Server/AbstractCompanyApi.php
Expand Down Expand Up @@ -58,7 +58,6 @@ tests/Model/ConfigurationTest.php
tests/Model/CredentialTest.php
tests/Model/CredentialTypeTest.php
tests/Model/CustomerTest.php
tests/Model/GetCredential200ResponseTest.php
tests/Model/GetCredentialType200ResponseTest.php
tests/Model/GetTopic200ResponseTest.php
tests/Model/JobTest.php
Expand All @@ -67,4 +66,5 @@ tests/Model/RunTemplateTest.php
tests/Model/StatusTest.php
tests/Model/TagTest.php
tests/Model/TopicTest.php
tests/Model/UpdateCredentials201ResponseTest.php
tests/Model/UserTest.php
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ Class | Method | HTTP request | Description
* MultiFlexi\Api\Model\Credential
* MultiFlexi\Api\Model\CredentialType
* MultiFlexi\Api\Model\Customer
* MultiFlexi\Api\Model\GetCredential200Response
* MultiFlexi\Api\Model\GetCredentialType200Response
* MultiFlexi\Api\Model\GetTopic200Response
* MultiFlexi\Api\Model\Job
Expand All @@ -213,6 +212,7 @@ Class | Method | HTTP request | Description
* MultiFlexi\Api\Model\Status
* MultiFlexi\Api\Model\Tag
* MultiFlexi\Api\Model\Topic
* MultiFlexi\Api\Model\UpdateCredentials201Response
* MultiFlexi\Api\Model\User


Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"license": "MIT",
"require": {
"php": "^7.4 || ^8.0",
"dyorg/slim-token-authentication": "*",
"php-di/slim-bridge": "^3.4",
"slim/psr7": "^1.5",
"dyorg/slim-token-authentication": "dev-slim4",
"tuupola/slim-basic-auth": "^3.0",
"monolog/monolog": "^2.4",
"neomerx/cors-psr7": "^2.0",
"php-di/slim-bridge": "^3.2",
"slim/psr7": "*",
"tuupola/slim-basic-auth": "^3.0",
"ybelenko/openapi-data-mocker": "^1.0",
"ybelenko/openapi-data-mocker-server-middleware": "^1.2"
},
Expand Down
4 changes: 2 additions & 2 deletions lib/App/RegisterRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ class RegisterRoutes
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/getCredential_200_response"
"$ref" : "#/components/schemas/Credential"
}
}
}
Expand Down Expand Up @@ -959,7 +959,7 @@ class RegisterRoutes
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/getCredential_200_response"
"$ref" : "#/components/schemas/updateCredentials_201_response"
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions lib/Model/Credential.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ class Credential extends BaseModel
"format" : "int64",
"example" : 10
},
"user_id" : {
"type" : "integer",
"format" : "int64",
"example" : 10
},
"company_id" : {
"type" : "integer",
"format" : "int64",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
use MultiFlexi\Api\BaseModel;

/**
* GetCredential200Response.
* UpdateCredentials201Response.
*
* @author OpenAPI Generator team
*
* @see https://github.com/openapitools/openapi-generator
*/
class GetCredential200Response extends BaseModel
class UpdateCredentials201Response extends BaseModel
{
/**
* @var string Models namespace.
Expand Down
10 changes: 0 additions & 10 deletions tests/Model/CredentialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,6 @@ public function testPropertyId(): void
);
}

/**
* Test attribute "userId".
*/
public function testPropertyUserId(): void
{
self::markTestIncomplete(
'Test of "userId" property in "Credential" model has not been implemented yet.',
);
}

/**
* Test attribute "companyId".
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
use PHPUnit\Framework\TestCase;

/**
* GetCredential200ResponseTest Class Doc Comment.
* UpdateCredentials201ResponseTest Class Doc Comment.
*
* @author OpenAPI Generator team
*
* @see https://github.com/openapitools/openapi-generator
*
* @coversDefaultClass \MultiFlexi\Api\Model\GetCredential200Response
* @coversDefaultClass \MultiFlexi\Api\Model\UpdateCredentials201Response
*/
class GetCredential200ResponseTest extends TestCase
class UpdateCredentials201ResponseTest extends TestCase
{
/**
* Setup before running any test cases.
Expand Down Expand Up @@ -70,19 +70,19 @@ protected function tearDown(): void
}

/**
* Test "GetCredential200Response".
* Test "UpdateCredentials201Response".
*/
public function testGetCredential200Response(): void
public function testUpdateCredentials201Response(): void
{
$testGetCredential200Response = new GetCredential200Response();
$namespacedClassname = GetCredential200Response::getModelsNamespace().'\\GetCredential200Response';
$this->assertSame('\\'.GetCredential200Response::class, $namespacedClassname);
$testUpdateCredentials201Response = new UpdateCredentials201Response();
$namespacedClassname = UpdateCredentials201Response::getModelsNamespace().'\\UpdateCredentials201Response';
$this->assertSame('\\'.UpdateCredentials201Response::class, $namespacedClassname);
$this->assertTrue(
class_exists($namespacedClassname),
sprintf('Assertion failed that "%s" class exists', $namespacedClassname),
);
self::markTestIncomplete(
'Test of "GetCredential200Response" model has not been implemented yet.',
'Test of "UpdateCredentials201Response" model has not been implemented yet.',
);
}

Expand All @@ -92,7 +92,7 @@ class_exists($namespacedClassname),
public function testPropertyName(): void
{
self::markTestIncomplete(
'Test of "name" property in "GetCredential200Response" model has not been implemented yet.',
'Test of "name" property in "UpdateCredentials201Response" model has not been implemented yet.',
);
}

Expand All @@ -102,7 +102,7 @@ public function testPropertyName(): void
public function testPropertyCompanyId(): void
{
self::markTestIncomplete(
'Test of "companyId" property in "GetCredential200Response" model has not been implemented yet.',
'Test of "companyId" property in "UpdateCredentials201Response" model has not been implemented yet.',
);
}

Expand All @@ -112,7 +112,7 @@ public function testPropertyCompanyId(): void
public function testPropertyType(): void
{
self::markTestIncomplete(
'Test of "type" property in "GetCredential200Response" model has not been implemented yet.',
'Test of "type" property in "UpdateCredentials201Response" model has not been implemented yet.',
);
}

Expand All @@ -123,7 +123,7 @@ public function testPropertyType(): void
*/
public function testGetOpenApiSchema(): void
{
$schemaArr = GetCredential200Response::getOpenApiSchema();
$schemaArr = UpdateCredentials201Response::getOpenApiSchema();
$this->assertIsArray($schemaArr);
}
}

0 comments on commit 83dfdcf

Please sign in to comment.