Tech Tip: REST Requests Must Contain URI and Resource Parameters
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: April 22, 2020
All REST requests must contain both the URI (Uniform Resource Identifir) and the Resource parameters. The URI parameter contains the server name and port number to identify a particular resource. The Resource parameter provides the resource to be identified.
An example of the URI parameter:
http://{servername}:{port}/rest/
Some examples of Resource parameters include:
- {dataClass}/
- {dataClass}{key}/
- $catalog
- $directory
- $info
Failing to provide both parameters in the request may result in a 404 Not Found error.