GET /ingredient_feelings/:id

GET /ingredient_feelings/{id}

Returns an ingredient feeling by id

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Responses

  • 401

    Authorization information is missing or invalid.

  • 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
      • author_user object
        Hide author_user attributes Show author_user attributes object
        • id integer
        • username string
        • user_type string
        • last_active string
      • ingredient object
        Hide ingredient attributes Show ingredient attributes object
        • id integer
        • title string
        • alias string
      • ingredient_opinion object
        Hide ingredient_opinion attributes Show ingredient_opinion attributes object
        • opinion_uuid string(uuid)
        • entry_uuid string(uuid)
        • revision integer
        • created_at string(DateTime)
        • 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
  • 404

    Feeling Not Found

  • 400

    Bad Request

  • 500

    Server Error

GET /ingredient_feelings/{id}
curl \
 -X GET https://api.cosmily.com/api/v1/ingredient_feelings/{id} \
 -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"
            }
          ]
        }
      }
    }
  }
}