Open dpham692 opened 3 years ago
This is expected behavior.
When you search by cachegroup name, you need to use cachegroupName
as the query param.
If you want to use cachegroup ID, use cachegroup
.
So the following two calls should work:
GET /api/3.0/asns?cachegroupName=<your cg name here>
and
GET /api/3.0/asns?cachegroup=<your cg ID here>
.
I spoke to @dpham692 and he was ok with closing this issue.
Since the cachegroup
query parameter should be an ID, it should be validated and return 400 bad request instead of 500 internal server error when the user provides a string.
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
Perform a /GET
https://{{TO_BASE_URL}}/api/3.0/asns?cachegroup={{cachegroupName}}
API will return Status Code 500Expected / new behavior:
API should return correct ASNs that link with the cache group.
Minimal reproduction of the problem with instructions:
Anything else: