Sending GETs

You can use a request tool, such as Postman, to ensure GETs are well-formed and to review the structure of the response payloads. For more information, see Requests and responses.

Send a GET using Postman

Procedure

  1. Start ClaimCenter and Postman.
  2. Start a new request by clicking the + to the right of the Launchpad tab.
  3. Under the Untitled Request label, make sure that GET is selected. (This is the default operation.)
  4. In the Enter request URL field, enter the URL for the server and the endpoint.
    • For example, to do a GET /activities on an instance of ClaimCenter on your machine, enter: http://localhost:8080/cc/rest/common/v1/activities
  5. On the Authorization tab, provide sufficient authorization information to execute the request. For example, to set up basic authentication for aapplegate:
    1. Click the Authorization tab.
    2. For the Type drop-down list, select Basic Auth.
    3. In the Username field, enter aapplegate.
    4. In the Password field, enter gw.
  6. Click the Send button to the right of the request field.

Tutorial: Send a basic Postman request

This tutorial assumes you have set up your environment with Postman and the correct sample data set. For more information, see Tutorial: Set up your Postman environment.

Tutorial steps

  1. In Postman, start a new request by clicking the + to the right of the Launchpad tab.
    1. On the Authorization tab, select Basic Auth using user aapplegate and password gw.
  2. Enter the following call and click Send: GET http://localhost:8080/cc/rest/common/v1/activities

Checking your work

Once a response has been received, its payload is shown in the lower portion of the Postman interface. The first few lines of the response payload are:

{
    "count": 25,
        "data": [
            {
            "attributes": {
            "activityPattern": "contact_claimant",
            "assignedGroup": {
                "displayName": "Auto1 - TeamA",
                "id": "demo_sample:31"
            },
            "assignedUser": {
                "displayName": "Andy Applegate",
                "id": "demo_sample:1"
            },