GET /facets

GET /facets

Fetch all facets

Query parameters

  • facet_type string

    Search by facet type

    Values are routine_goals, skin_types, or skin_concerns.

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data array[object]
      Hide data attributes Show data attributes array[object]
      • facet_type string
      • id integer
      • facet_value string
      • menuindex integer
      • created_at string(DateTime)
      • updated_at string(DateTime)
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 500

    Server Error

GET /facets
curl \
 -X GET https://api.cosmily.com/api/v1/facets \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 1,
      "facet_type": "skin_types",
      "facet_value": "dry skin",
      "menuindex": 0,
      "created_at": "2021-10-04T13:24:22.000Z",
      "updated_at": "2021-11-13T20:23:18.000Z"
    }
  ]
}
Response examples (200)
{
  "data": [
    {
      "id": 1,
      "menuindex": 0,
      "created_at": "2021-10-04T13:24:22.000Z",
      "facet_type": "skin_types",
      "updated_at": "2021-11-13T20:23:18.000Z",
      "facet_value": "dry skin"
    }
  ]
}