Property Parameters - Used in REST calls
I am working on my first REST operation concept and had a question about the Property Parameters. If I put a value in CAPTION, does that mean that when I use it in my call that it will come out in the URL?
For example...
Then in my operation...
Set tURL=..Adapter.URL_"?q="_pRequest.enumerationType
so when it builds the URL it looks like...
Just following up, can anyone answer my question above?
CAPTION values won't be added to the URL automatically. The result of the sample code you posted would be:
https://npiregistry.cms.hhs.gov/api?q=NPI-1
CAPTION is generally used to set the label text for a property when displaying it in a user interface. It's used extensively in Zen:
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...
You need so specify your base URL as URL property and pass the parameters in a method:
It would send the following request: