-
Notifications
You must be signed in to change notification settings - Fork 13
Listing templates
Dilshat edited this page May 22, 2018
·
10 revisions
List templates ../list
This REST is used to list templates (empty array [] must be returned if no matching templates found ). It has optional parameters that are used to filter the result set. We have the following combinations:
../list
../list?owner={owner}
../list?token={token}
../list?owner={owner}&token={token}
Listing is performed in this way:
- Lists all public templates of all users
- Lists all public templates of the specified owner
- Lists all public templates of all users + private templates of the token holder + the templates shared with the token holder
- Lists all public templates of the specified owner + the private templates of the specified owner that are shared with the token holder
Result set must contain only unique templates and not allow duplicates. That means if a template fits several criteria based on the passed parameters, it must be included into the result set only once.
Note: if name
or version
parameter is passed, it is used to further filter the result set by the supplied name/version.