GET /my/ingredient_feelings

GET /my/ingredient_feelings

Returns the ingredient feelings 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]
      • 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
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

  • 500

    Server Error

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