When you add or modify a RESTful web service policy information point (PIP), you must specify its properties.
https://example.ibm.com/jaxrs/getApprovedAmount/
https://example.ibm.com/jaxrs/getApprovedAmount/{username}
In
the following example, the user name and IP address for the request
are substituted in the URL at run time. The attribute names are username
and ipAddress. https://example.ibm.com/jaxrs/getApprovedAmount/{username}/{ipAddress}
Also, the cn= value in the server certificate must be the host name for the server, not the IP address.
JSON Selector format | Description |
---|---|
$.x | Returns the value for the property that is named
x in the JSON object. Example:
$.name
returns 'Bill'. |
$.x....z | Returns the value for the property within a
nested JSON object. Example:
$.loan.amount
returns 100. |
$.x[*] | Returns the array found at the specified property.
Example:
$.accounts[*]
returns [10000, 2000, 500].
The attribute is multivalued with each
object in the array as a value. |
$.[*] | Returns an array that is contained in the JSON
response. The attribute is multivalued
with each object in the array as a value. Example: If the data is ["joe", "bob", "ted"] , $.[*] returns ["joe", "bob", "ted"] |
$.[x] | Returns a value from a JSON array index, where
$.[x] represents
the index on the array of the value you
want to return. Example: If the data is ["joe", "bob", "ted"] , $.[1] returns ["bob"] |
$.[*].x | Returns values from a property within an array
of JSON objects. Example: If the data is
$.[*].name
returns ["joe", "bill", "ted"] |