GET /ingredient_opinions/entry/:entry_uuid

GET /ingredient_opinions/entry/{entry_uuid}

Returns the specified ingredient opinion entry

Path parameters

  • entry_uuid integer(int64) Required

    uuid of the Opinion Entry to fetch

Responses

GET /ingredient_opinions/entry/{entry_uuid}
curl \
 -X GET https://api.cosmily.com/api/v1/ingredient_opinions/entry/{entry_uuid} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "entry_uuid": "string",
    "opinion_uuid": "string",
    "revision": 42,
    "publication": "published",
    "created_at": "string",
    "feeling_type": "positive",
    "ingredient_id": 42,
    "author_user_id": 42,
    "active": true,
    "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": {
    "entry_uuid": "string",
    "opinion_uuid": "string",
    "revision": 42,
    "publication": "published",
    "created_at": "string",
    "feeling_type": "positive",
    "ingredient_id": 42,
    "author_user_id": 42,
    "active": true,
    "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"
          }
        ]
      }
    }
  }
}