Changes on api

This commit is contained in:
Marcos Zuriaga 2016-10-03 23:05:18 +02:00
parent 5d278e6d57
commit fe856414fa
No known key found for this signature in database
GPG key ID: 7D15585354D072FF
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ return [
['name' => 'share#deleteShareRequest', 'url' => '/api/v2/sharing/decline/{share_request_id}', 'verb' => 'DELETE'],
['name' => 'share#getVaultItems', 'url' => '/api/v2/sharing/vault/{vault_guid}/get', 'verb' => 'GET'],
['name' => 'share#getRevisions', 'url' => '/api/v2/sharing/revisions/{item_guid}', 'verb' => 'GET'],
['name' => 'share#getCredentialData', 'url' => '/api/v2/sharing/credential/{credential_guid}', 'verb' => 'GET'],
['name' => 'share#getPublicCredentialData', 'url' => '/api/v2/sharing/public/credential/{credential_guid}', 'verb' => 'GET'],
['name' => 'share#createPublicShare', 'url' => '/api/v2/sharing/public', 'verb' => 'POST'],
//Internal API

View file

@ -295,9 +295,9 @@ class ShareController extends ApiController {
* @NoCSRFRequired
* @PublicPage
*/
public function getCredentialData($credential_guid) {
public function getPublicCredentialData($credential_guid) {
try {
$credential = $this->shareService->getSharedItem($this->userId, $credential_guid);
$credential = $this->shareService->getSharedItem(null, $credential_guid);
return new JSONResponse($credential);
}
catch (DoesNotExistException $ex){