update shared client code for api v2

This commit is contained in:
Jake McDermott 2019-06-06 11:04:23 -04:00 committed by Ryan Petrello
parent 7a0a2fb54c
commit 5987aafb82
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
*
* ```
* /api/v2/inventories/9/
* /api/v2/credentials/?name=SSH Key&kind=ssh
* /api/v2/credentials/?name=SSH Key&credential_type__namespace=ssh
* ```
*
* When constructing the URL be sure to use the GetBasePath() method found in js/shared/Utilities.js. GetBasePath uses the response objects from /api and

View File

@ -654,13 +654,13 @@ function(SettingsUtils, i18n, $rootScope) {
else {
switch(base) {
case 'credential':
query += '&kind=ssh&role_level=use_role';
query += '&credential_type__namespace=ssh&role_level=use_role';
break;
case 'scm_credential':
query += '&kind=scm&role_level=use_role';
query += '&redential_type__namespace=scm&role_level=use_role';
break;
case 'network_credential':
query += '&kind=net&role_level=use_role';
query += '&redential_type__namespace=net&role_level=use_role';
break;
case 'cloud_credential':
query += '&cloud=true&role_level=use_role';