Example #1
0
 /** @inheritdoc */
 public function getApiDocInfo()
 {
     $base = parent::getApiDocInfo();
     $base['apis'][0]['operations'][0]['parameters'][] = ['name' => 'user', 'description' => 'Accepts an username to list groups by username.', 'allowMultiple' => false, 'type' => 'string', 'format' => 'int32', 'paramType' => 'query', 'required' => false, 'default' => null];
     $base['models']['GroupResponse']['properties'] = array_merge($base['models']['GroupResponse']['properties'], ['member' => ['type' => 'array', 'description' => 'Lists the member of the group.'], 'description' => ['type' => 'string', 'description' => 'Description of the group.']]);
     return $base;
 }
Example #2
0
 /** @inheritdoc */
 public function getApiDocInfo()
 {
     $base = parent::getApiDocInfo();
     $base['models']['UserResponse']['properties'] = array_merge($base['models']['UserResponse']['properties'], ['sn' => ['type' => 'string', 'description' => 'Surname of the user.'], 'givenname' => ['type' => 'string', 'description' => 'First name of the user.'], 'memberof' => ['type' => 'array', 'description' => 'Lists the groups (dn) this user is a member of.'], 'name' => ['type' => 'string', 'description' => 'Full name of the user.'], 'samaccountname' => ['type' => 'string', 'description' => 'User login name.']]);
     return $base;
 }