(Example) Create a REST Service Access Token

To create an access token to connect to a REST service, do the procedure in this topic.

How to Start

  1. Click Manage.

    AgilePoint NX Portal Home page
  2. On the Global Access Tokens screen, click Add Token Add Token icon
  3. On the Add Global Access Tokens screen, select REST Service.

    Click Rest Service
  4. Click Next.

Procedure

  1. On the Add Global Access Token screen, in the Token Name field, enter REST Access Token.

    REST Access Token
  2. In the Service URL, enter the URL of your REST service.

    Example:

    http://localhost:53575/AbsenceRequest.svc/GetRemaningLeaves/${/pd:AP/pd:formFields/pd:EmployeeFullName}


    REST Service URL
  3. In the Action list, select GET.

    GET
  4. In the Content Type list, select JSON.

    JSON
  5. In the Accept list, select JSON.

    JSON
  6. In the Protocol list, select HTTP11.

    HTTP11
  7. Click Authentication.

    Authentication
  8. Click Basic Authentication.

    Basic Authentication
  9. In the User Name field, enter Administrator.

    Administrator
  10. In the Password field, enter the password for your REST service authentication account.
    REST Service Password
  11. Click Generate.
    Generate
  12. Click Insert.
  13. to make sure the REST service account is correct, click Test Connection.
    Test Connection
  14. Click Encrypt.
  15. Click Done.

Download Files

This file has the REST service used in this example. You can deploy this service in your environment to test it.