Skip to content

Commit f2c4f70

Browse files
authored
Merge pull request #82 from tschmittni/master
Add list workspace parameters to niuser
2 parents d3925ca + cc4bc93 commit f2c4f70

File tree

1 file changed

+52
-27
lines changed

1 file changed

+52
-27
lines changed

user/niuser.yaml

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,31 @@ paths:
149149
summary: List workspaces
150150
description: List the workspaces of an organization
151151
operationId: get-workspaces
152+
parameters:
153+
- in: query
154+
name: name
155+
description: Filters the workspaces by name
156+
type: string
157+
- in: query
158+
name: skip
159+
description: How many workspaces to skip in the result when paging.
160+
type: integer
161+
- in: query
162+
name: take
163+
description: How many workspaces to return in the result.
164+
type: integer
165+
default: 50
166+
maximum: 100
167+
- in: query
168+
name: sortby
169+
description: The field name for sorting the results
170+
type: string
171+
enum: [name]
172+
- in: query
173+
name: order
174+
description: Sort by ascending or descending order
175+
type: string
176+
enum: [ascending, descending]
152177
responses:
153178
200:
154179
$ref: '#/responses/GetWorkspacesResponse'
@@ -362,61 +387,61 @@ parameters:
362387
The filter criteria for users, consisting of a string of queries composed using AND/OR operators.
363388
String values need to be enclosed in double quotes.
364389
Parenthesis can be used within the filter to better define the order of operations.
365-
366-
390+
391+
367392
Filter syntax: '[property name][operator][operand] and [property name][operator][operand]'
368-
369-
393+
394+
370395
Operators:
371-
396+
372397
- Equals operator '='. Example: 'x = y'
373-
398+
374399
- Not equal operator '!='. Example: 'x != y'
375-
400+
376401
- Greater than operator '>'. Example: 'x > y'
377-
402+
378403
- Greater than or equal operator '>='. Example: 'x >= y'
379-
404+
380405
- Less than operator '<'. Example: 'x < y'
381-
406+
382407
- Less than or equal operator '<='. Example: 'x <= y'
383-
408+
384409
- Logical AND operator 'and'. Example: 'x and y'
385-
410+
386411
- Logical OR operator 'or'. Example: 'x or y'
387-
412+
388413
- Contains operator '.Contains()', used to check whether a string contains another string. Example: 'x.Contains(y)'
389-
414+
390415
- Does not contain operator '!.Contains()', used to check whether a string does not contain another string. Example: '!x.Contains(y)'
391-
416+
392417
- String null or empty 'string.IsNullOrEmpty()', used to check whether a string is null or empty. Example: 'string.IsNullOrEmpty(x)'
393-
418+
394419
- String is not null or empty '!string.IsNullOrEmpty()', used to check whether a string is not null or empty. Example: '!string.IsNullOrEmpty(x)'
395-
396-
420+
421+
397422
Valid user properties that can be used in the filter:
398-
423+
399424
- id
400-
425+
401426
- firstName
402-
427+
403428
- lastName
404-
429+
405430
- email
406-
431+
407432
- niuaId
408-
433+
409434
- login
410-
435+
411436
- status
412437
type: string
413438
example: firstName.Contains("John") && status == "active"
414439
take:
415440
description: The maximum number of users to return
416441
type: integer
417-
default: 100
442+
default: 50
418443
minimum: 0
419-
maximum: 1000
444+
maximum: 100
420445
example: 10
421446
sortby:
422447
description: The field name for sorting the results

0 commit comments

Comments
 (0)