istic-openstack/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php
2016-03-09 15:36:02 +01:00

36 lines
945 B
PHP

<?php
namespace OpenCloud\Test\Fixtures;
use OpenCloud\Common\Api\ApiInterface;
class IdentityV2Api implements ApiInterface
{
public function postToken()
{
return [
'method' => 'POST',
'path' => 'tokens',
'params' => [
'username' => [
'type' => 'string',
'required' => true,
'path' => 'auth.passwordCredentials'
],
'password' => [
'type' => 'string',
'required' => true,
'path' => 'auth.passwordCredentials'
],
'tenantId' => [
'type' => 'string',
'path' => 'auth',
],
'tenantName' => [
'type' => 'string',
'path' => 'auth',
]
],
];
}
}