GET /users/:id_or_username/ingredient_feelings/:ingredient_id_or_alias

GET /users/{id_or_username}/ingredient_feelings/{ingredient_id_or_alias}

Returns the active ingredient feeling for a (user, ingredient) pair

Path parameters

Responses

GET /users/{id_or_username}/ingredient_feelings/{ingredient_id_or_alias}
curl \
 -X GET https://api.cosmily.com/api/v1/users/{id_or_username}/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,
    "author_user": {
      "id": 42,
      "username": "string",
      "user_type": "string",
      "last_active": "string"
    },
    "ingredient": {
      "id": 42,
      "title": "string",
      "alias": "string"
    },
    "ingredient_opinion": {
      "opinion_uuid": "string",
      "entry_uuid": "string",
      "revision": 42,
      "created_at": "string",
      "content": {
        "text": "working towards #sustainability with @alex",
        "entities": {
          "hashtags": [
            {
              "text": "sustainability",
              "indices": [
                16,
                31
              ]
            }
          ],
          "user_mentions": [
            {
              "username": "alex",
              "indices": [
                37,
                42
              ],
              "id": 42,
              "name": "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"
    },
    "ingredient": {
      "id": 42,
      "title": "string",
      "alias": "string"
    },
    "ingredient_opinion": {
      "opinion_uuid": "string",
      "entry_uuid": "string",
      "revision": 42,
      "created_at": "string",
      "content": {
        "text": "working towards #sustainability with @alex",
        "entities": {
          "hashtags": [
            {
              "text": "sustainability",
              "indices": [
                16,
                31
              ]
            }
          ],
          "user_mentions": [
            {
              "username": "alex",
              "indices": [
                37,
                42
              ],
              "id": 42,
              "name": "string"
            }
          ]
        }
      }
    }
  }
}