GET /ingredient_opinions/hashtag/:hashtag

GET /ingredient_opinions/hashtag/{hashtag}

Returns the current entry for all public ingredient opinions matching the given hashtag

Path parameters

  • hashtag string Required

    returns items according to an hashtag

Query parameters

  • page integer

    requested page number

    Minimum value is 1. Default value is 1.

  • page_size integer

    requested page size

    Minimum value is 1, maximum value is 100. Default value is 12.

Responses

GET /ingredient_opinions/hashtag/{hashtag}
curl \
 -X GET https://api.cosmily.com/api/v1/ingredient_opinions/hashtag/{hashtag} \
 -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"
            }
          ]
        }
      }
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "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"
            }
          ]
        }
      }
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}