GET /my/ingredient_feelings/:ingredient_id_or_alias

GET /my/ingredient_feelings/{ingredient_id_or_alias}

Returns the active ingredient feeling of the specified ingredient for the logged in user

Path parameters

  • ingredient_id_or_alias string Required

    specify an Ingredient by ID or Alias

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes 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
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

  • 500

    Server Error

GET /my/ingredient_feelings/{ingredient_id_or_alias}
curl \
 -X GET https://api.cosmily.com/api/v1/my/ingredient_feelings/{ingredient_id_or_alias} \
 -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
  }
}
Response examples (200)
{
  "data": {
    "id": 42,
    "active": true,
    "feeling_type": "positive",
    "created_at": "string",
    "updated_at": "string",
    "ingredient_id": 42,
    "author_user_id": 42
  }
}