Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Paste the provided code below the “// Implement resource here” comment and click submit.

Image RemovedImage Added

Resource ACLs

Scroll down to the “Security” tab and click on the “Unlock ACLs” button. Remove any default ACLs present and add the ACL we created on the “Security” section of this document. Also make sure the “Requires authentication” and “Requires authorization” fields are checked, then click on the “Update” button.

Image RemovedImage Added

Query Parameters

...

Scroll to the bottom of the page. The new resource should now be created. Click on the “Query Parameters” tab.

Image RemovedImage Added

New Query Parameter

On the "Query Parameters" tab, click on the “New” button.

Image RemovedImage Added

Create the Query Parameter

Specify the “Query parameter name” (“userId” is recommended) and click the submit button.

Image RemovedImage Added

Final Steps

Update the Scripted REST API

Click the “Update” button on the top of the page.

Image RemovedImage Added

Test your service

...

The service output looks like this:

Image RemovedImage Added

If the service is run with a user without permissions, the output should look like this:

Image RemovedImage Added

Done!

Your service is now ready to be used. If names other than the recommended ones were used, they must be provided for the correct configuration of the system.

...