FIX: [Universal package API] When an empty group is specified all groups are returned
Created:
7/18/2023 10:43:19 AM by Rich H
Status:
Awaiting Release on
Last pulled:
7/21/2023 1:45:35 PM
Description:
API URL: GET `/upack/«feed-name»/packages?group=«group»&name=«name»&count=«count»`
Steps to reproduce:
1. Create a universal package feed.
2. Add a package with the name "Duplicate".
3. Add another package with the name "Duplicate", but this time in a group, "dupGroup".
4. Use the /upack/packages?name=Duplicate endpoint. Note that both packages are returned.
Docs:
> To return the packages in the empty group, specify the group parameter without a value (e.g. /upack/dev-feed/packages?group=)
>
> Note that specifying the name parameter will cause an object to be returned instead of an array; if you don't specify a group, then packages in the empty group will be searched
>
> Note that the group parameter must be a full match; future versions of this endpoint may allow for a sub-group searching (such as groupName* or something).