Skip to content

Instantly share code, notes, and snippets.

View kefzce's full-sized avatar

kefzce

View GitHub Profile
<?php
$finder = PhpCsFixer\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
Title Change password
URL /api/users/passwordChange
Method POST
Headers Authorization=Bearer token
Content-type: application/json
Params password=current password
newPassword=new password
Data Params example
{
"password": "password",
"newPassword": "pass"
}
Success Response example{"token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9"}