GET /products/:id_or_alias/effects

GET /products/{id_or_alias}/effects

Returns the positive, harmful, and notable effects of a single product

Path parameters

Responses

GET /products/{id_or_alias}/effects
curl \
 -X GET https://api.cosmily.com/api/v1/products/{id_or_alias}/effects \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "effects": {
    "positive": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "harmful": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "notable": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ]
  }
}
Response examples (200)
{
  "effects": {
    "positive": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "harmful": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ],
    "notable": [
      {
        "effect": "string",
        "ingredient_ids": [
          42
        ]
      }
    ]
  }
}