GET /my/routine_requests

GET /my/routine_requests

Returns the Routine Requests 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.

  • status string

    filter by Routine Request status

Responses

  • 200

    successful operation

    Hide response attributes Show response attributes object
    • data array[object]
      Hide data attributes Show data attributes array[object]
      • id integer
      • user_id integer
      • routine_id integer
      • status string
      • request object
        Hide request attribute Show request attribute object
        • products array[string]
      • routine_title string
      • routine_type string
      • created_at string(DateTime)
      • updated_at string(DateTime)
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

  • 500

    Server Error

GET /my/routine_requests
curl \
 -X GET https://api.cosmily.com/api/v1/my/routine_requests \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "user_id": 42,
      "routine_id": 42,
      "status": "string",
      "routine_title": "string",
      "routine_type": "string",
      "request": {
        "products": [
          "string"
        ]
      },
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "user_id": 42,
      "routine_id": 42,
      "status": "string",
      "request": {
        "products": [
          "string"
        ]
      },
      "routine_title": "string",
      "routine_type": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "links": {
    "last": "string",
    "prev": "string",
    "first": "string",
    "next": "string"
  }
}