Get Product by ID

get

/action/product/{productId}

Retrieves the specified product.

Request

Path Parameters
Back to Top

Response

200 Response

The product was retrieved successfully.
Back to Top

Examples

The following example shows how to retrieve details of product by ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

curl -X GET "hostname:port/product/ID" -H "accept: */*"

Example of Response Body

If successful, the response code 200 is returned with a response body. For example:

{
  "actions": [
    {
      "bdd": "string",
      "data": {
        "subType": "string",
        "expectedStatusCode": "string"
      },
      "name": "string",
      "path": "string",
      "tags": [
        "string"
      ],
      "product": "string",
      "actionType": "string",
      "description": "string"
    }
  ],
  "product": "string"
}

If the request fails, the response includes the appropriate HTTP code. For a 4xx/5xx code, the message body also contains a ProblemDetails structure with the cause attribute set to the appropriate application error.

Back to Top