To retrieve all features for a given product ID, use the following request:

GET /products/product_id/features

where:

  • product_id (integer) is the product ID.

Example request

GET /products/1/features HTTP/1.1
Authorization: Bearer f794846b7c26621688e1e06164975b4eae8ce2f6

Response

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
200 OKFeature list.

400 Bad Request

Invalid query parameters.
403 ForbiddenInvalid or expired token provided.
404 Not FoundProduct ID does not exist.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json

[
	{
		"id": "1",
		"name": "Basic"
	},
	{
		"id": "2",
		"name": "Pro"
	}
]
  • No labels