GET /my/ingredient_analyses

GET /my/ingredient_analyses

Returns the ingredient analyses created by 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]
      • uuid string(uuid)
      • created_at string(DateTime)
      • owner_user_id integer
      • ingredient_label_text string
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

  • 500

    Server Error

GET /my/ingredient_analyses
curl \
 -X GET https://api.cosmily.com/api/v1/my/ingredient_analyses \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "uuid": "string",
      "created_at": "string",
      "owner_user_id": 42,
      "ingredient_label_text": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}
Response examples (200)
{
  "data": [
    {
      "uuid": "string",
      "created_at": "string",
      "owner_user_id": 42,
      "ingredient_label_text": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}