cdn
cdn copied to clipboard
Add additional parameters to "/list" REST endpoint to filter templates
-
version
parameter, possible values could be:all
,latest
. To filter only latest versions of templates. Example/list?version=latest
-
another param to filter only templates, which can be selected by user to build containers. Templates like
management
must be excluded by this parameter.
Done in dev. Waiting for the actions from bazaar side.
To test it use the new parameter in ../list
endpoint:
https://mastercdn.subutai.io:8338/kurjun/rest/raw/list?version=latest https://mastercdn.subutai.io:8338/kurjun/rest/template/list?version=latest https://mastercdn.subutai.io:8338/kurjun/rest/apt/list?version=latest
Should show only latest-version files among those with similar names and owners. I.e. one unique latest-version file per user with each name. If you will have questions ping me.
Done in Master.