According to documentation and my tests, accept and content-type headers need to be set to application/vnd.blackducksoftware.user-4+json. If not, some request may fail with 406 error code (for example http//BLACKDUCK_URL/api/users/USER_UID/last-login).
I would recommend to change Client.py code :
if 'accept' not in lc_keys and 'content-type' not in lc_keys:
# set default media type only if neither 'accept' nor 'content-type'
# exist as some endpoints may only accept one or the other but not both
lc_keys['accept'] = "application/json"
lc_keys['content-type'] = "application/json"
to
if 'accept' not in lc_keys and 'content-type' not in lc_keys:
# set default media type only if neither 'accept' nor 'content-type'
# exist as some endpoints may only accept one or the other but not both
lc_keys['accept'] = "application/vnd.blackducksoftware.user-4+json"
lc_keys['content-type'] = "application/vnd.blackducksoftware.user-4+json"
Hi,
According to documentation and my tests, accept and content-type headers need to be set to application/vnd.blackducksoftware.user-4+json. If not, some request may fail with 406 error code (for example http//BLACKDUCK_URL/api/users/USER_UID/last-login).
I would recommend to change Client.py code :
to