GET /analyze/:token/ingredient_feelings

GET /analyze/{token}/ingredient_feelings

Returns feelings for each ingredient with feelings

Path parameters

  • token string(uuid) Required

    token reference to desired resource

Responses

GET /analyze/{token}/ingredient_feelings
curl \
 -X GET https://api.cosmily.com/api/v1/analyze/{token}/ingredient_feelings \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "active": true,
      "feeling_type": "positive",
      "created_at": "string",
      "updated_at": "string",
      "ingredient_id": 42,
      "author_user_id": 42,
      "author_user": {
        "id": 42,
        "username": "string",
        "user_type": "string",
        "last_active": "string"
      }
    }
  ]
}
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "active": true,
      "feeling_type": "positive",
      "created_at": "string",
      "updated_at": "string",
      "ingredient_id": 42,
      "author_user_id": 42,
      "author_user": {
        "id": 42,
        "username": "string",
        "user_type": "string",
        "last_active": "string"
      }
    }
  ]
}