Verified Commit 44ad4892 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:sparkles: feat(webservice) Document the new b64 option for searched attributes

issue #6014
Showing with 9 additions and 3 deletions
+9 -3
...@@ -67,9 +67,11 @@ class fdRPCService ...@@ -67,9 +67,11 @@ class fdRPCService
* \param string $type the objectType to list * \param string $type the objectType to list
* \param mixed $attrs The attributes to fetch. * \param mixed $attrs The attributes to fetch.
* If this is a single value, the resulting associative array will have for each dn the value of this attribute. * If this is a single value, the resulting associative array will have for each dn the value of this attribute.
* If this is an array, the keys must be the wanted attributes, and the values can be either 1, '*' or 'raw' * If this is an array, the keys must be the wanted attributes, and the values can be either 1, '*', 'b64' or 'raw'
* depending if you want a single value or an array of values. 'raw' means untouched LDAP value and is only useful for dns. * depending if you want a single value or an array of values.
* Other values are considered to be 1. * Other values are considered to be 1.
* 'raw' means untouched LDAP value and is only useful for dns.
* 'b64' means an array of base64 encoded values and is mainly useful for binary attributes.
* \param string $ou the LDAP branch to search in, base will be used if it is NULL * \param string $ou the LDAP branch to search in, base will be used if it is NULL
* \param string $filter an additional filter to use in the LDAP search. * \param string $filter an additional filter to use in the LDAP search.
* *
......
...@@ -235,7 +235,11 @@ paths: ...@@ -235,7 +235,11 @@ paths:
- name: attrs - name: attrs
in: query in: query
required: false required: false
description: The attributes to return description: "The attributes to return: the keys must be the wanted attributes,
and the values can be either 1, '*', 'b64' or 'raw' depending if you want a
single value or an array of values. Other values are considered to be 1.
'raw' means untouched LDAP value and is only useful for dns.
'b64' means an array of base64 encoded values and is mainly useful for binary attributes."
schema: schema:
type: object type: object
example: example:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment