GET /user/permissions
Retorna 200 OK e todos as informações de permissão do usuário em cada conta, além das entidades que possui acesso.
Retorna 401 Unauthorized Access caso o token esteja incorreto.
HTTP/1.1 200 OK
Date: Wed, 11 Sep 2013 19:34:03 GMT
Content-Type: application/json; charset=utf-8
{
"user": {
"accounts": [
{
"id": 1,
"financial_transactions": true,
"payable_accounts": true,
"receivable_accounts": true,
"cash_flows": true,
"budgets": true,
"bank_slips": true,
"credit_cards": true,
"entities": [
{
"id": 1,
"name": "Minhas Finanças"
}
]
}
]
}
}
HTTP/1.1 200 OK
Date: Wed, 11 Sep 2013 19:34:03 GMT
Content-Type: application/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<user>
<accounts type="array">
<account>
<id>1</id>
<financial-transactions type="boolean">true</financial-transactions>
<payable-accounts type="boolean">true</payable-accounts>
<receivable-accounts type="boolean">true</receivable-accounts>
<cash-flows type="boolean">true</cash-flows>
<budgets type="boolean">true</budgets>
<bank-slips type="boolean">true</bank-slips>
<credit-cards type="boolean">true</credit-cards>
<entities type="array">
<entity>
<id>1</id>
<name>Minhas Finanças</id>
</entity
</entities>
</account>
</accounts>
</user>