IBM Support

Not able to pass extended attributes as parameters in GET HTTP request

Troubleshooting


Problem

Not able to pass extended attributes as parameters in GET HTTP request.

Symptom

Passing extended attribute in GET HTTP request for list API is not returning expected results.

Cause

Only selected attributes can be passed in GET request for list APIs. See REST documentation for list of those attributes for each API.

Resolving The Problem

Only selected attributes can be passed in GET request for list APIs. See REST documentation for list of those attributes for each API. For other attributes, including extended attributes, POST method should be used.

For example, if the requirement is to list users which are active using getUserList API, use POST method and post the following input XML


<User>
<Extn ExtnUserActive="Y"/>
</User>

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF016","label":"Linux"}],"Version":"9.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg22003472