GET /my/ingredient_opinions

GET /my/ingredient_opinions

Returns the ingredient opinions of the logged in user

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

  • 200

    successful operation

    Hide response attributes Show response attributes object
    • data array[object]
      Hide data attributes Show data attributes array[object]
      • entry_uuid string(uuid)
      • opinion_uuid string(uuid)
      • revision integer
      • publication string

        Values are published, unpublished, or deleted.

      • created_at string(DateTime)
      • feeling_type string

        Values are positive or negative.

      • ingredient_id integer
      • author_user_id integer
      • active boolean
      • content object
        Hide content attributes Show content attributes object
        • text string
        • entities object
          Hide entities attributes Show entities attributes object
          • hashtags array[object]
            Hide hashtags attributes Show hashtags attributes array[object]
            • text string
            • indices array[integer]

              At least 2 but not more than 2 elements.

          • user_mentions array[object]
            Hide user_mentions attributes Show user_mentions attributes array[object]
            • username string
            • indices array[integer]

              At least 2 but not more than 2 elements.

            • id integer
            • name string
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

  • 500

    Server Error

GET /my/ingredient_opinions
curl \
 -X GET https://api.cosmily.com/api/v1/my/ingredient_opinions \
 -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"
  }
}