ShowTable of Contents
Data API lowercasefields parameter
The document resource GET operation now supports a lowercasefields parameter. This can help an API client resolve JSON case sensitivity issues.
Suppose you send a GET request to this URL:
/xpagesext.nsf/api/data/documents/unid/39A95ECD82D0DEB485257AB5005BFEE0
The response might include mixed case field names like this:
{
"@href": "/xpagesext.nsf/api/data/documents/unid/39A95ECD82D0DEB485257AB5005BFEE0",
"@unid": "39A95ECD82D0DEB485257AB5005BFEE0",
"@noteid": "5D26",
"@created": "2012-11-13T16:44:50Z",
"@modified": "2013-07-16T21:39:28Z",
"@form": "Contact",
"Id": "CN=Aaron Goodman/O=renovations",
"FirstName": "Aaron",
"LastName": "Goodman",
"City": "Philadelphia",
"State": "PA",
"EMail": "aaron_goodman@renovations.com"
}
Notice how FirstName and LastName are mixed case, but since Notes and Domino item names are not case sensitive, the case may change from one document to the next. To force all JSON property names to lower case, you can instead use this URL:
/xpagesext.nsf/api/data/documents/unid/39A95ECD82D0DEB485257AB5005BFEE0?lowercasefields=true
Now the response will look like this:
{
"@href": "/xpagesext.nsf/api/data/documents/unid/39A95ECD82D0DEB485257AB5005BFEE0",
"@unid": "39A95ECD82D0DEB485257AB5005BFEE0",
"@noteid": "5D26",
"@created": "2012-11-13T16:44:50Z",
"@modified": "2013-07-16T21:39:28Z",
"@form": "Contact",
"id": "CN=Aaron Goodman/O=renovations",
"firstname": "Aaron",
"lastname": "Goodman",
"city": "Philadelphia",
"state": "PA",
"email": "aaron_goodman@renovations.com"
}