curl --request GET \
--url https://lojinha.dev/api/v1/collections \
--header 'Authorization: Bearer <token>'
{
"collections": [
{
"id": "25de97bf-6564-4c93-b860-8898a4d52bf7",
"store": "org_2StqHEqEqKtCH66IJjLb73J2ww6",
"name": "Livros",
"slug": "livros",
"description": "<p><em>Todos os livros da nossa loja.</em></p>",
"createdAt": "2023-07-21T21:49:58.961Z",
"updatedAt": null,
"deletedAt": null,
"_count": {
"parents": 0,
"children": 1,
"products": 2
}
}
],
"total": 1
}
Retorna todas as coleções da sua loja
curl --request GET \
--url https://lojinha.dev/api/v1/collections \
--header 'Authorization: Bearer <token>'
{
"collections": [
{
"id": "25de97bf-6564-4c93-b860-8898a4d52bf7",
"store": "org_2StqHEqEqKtCH66IJjLb73J2ww6",
"name": "Livros",
"slug": "livros",
"description": "<p><em>Todos os livros da nossa loja.</em></p>",
"createdAt": "2023-07-21T21:49:58.961Z",
"updatedAt": null,
"deletedAt": null,
"_count": {
"parents": 0,
"children": 1,
"products": 2
}
}
],
"total": 1
}
Show child attributes
string
com HTML
null
{
"collections": [
{
"id": "25de97bf-6564-4c93-b860-8898a4d52bf7",
"store": "org_2StqHEqEqKtCH66IJjLb73J2ww6",
"name": "Livros",
"slug": "livros",
"description": "<p><em>Todos os livros da nossa loja.</em></p>",
"createdAt": "2023-07-21T21:49:58.961Z",
"updatedAt": null,
"deletedAt": null,
"_count": {
"parents": 0,
"children": 1,
"products": 2
}
}
],
"total": 1
}