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

  • 401

    Authorization information is missing or invalid.

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data array[object]
      Hide data attributes Show data attributes array[object]
      • id integer
      • active boolean
      • feeling_type string

        Values are positive or negative.

      • created_at string(DateTime)
      • updated_at string(DateTime)
      • ingredient_id integer
      • author_user_id integer
      • author_user object
        Hide author_user attributes Show author_user attributes object
        • id integer
        • username string
        • user_type string
        • last_active string
  • 404

    Ingredient List Analysis Not Found

  • 400

    Bad Request

  • 500

    Server Error

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"
      }
    }
  ]
}