Skip to content

Buscar Entidade por URL

GET /publics/url

Busca produtos, categorias, marcas ou páginas através de uma URL amigável

Parâmetros da URL

ParâmetroTipoObrigatórioDescrição
urlstringSimURL amigável da entidade (slug)

Parâmetros de Query

ParâmetroTipoObrigatórioDescrição
pageintegerNãoNúmero da página (padrão: 1)
limitintegerNãoItens por página (padrão: 12, máx: 50)
orderBystringNãoCampo para ordenação (ex: price, name, createdAt)
orderDirectionstringNãoDireção: asc ou desc
filtersobjectNãoFiltros adicionais (atributos, faixa de preço, etc.)

Resposta de Sucesso

HTTP Status: 200 OK

Tipo: Produto

1{
2 "type": "product",
3 "entity": {
4 "id": 44,
5 "type": "product",
6 "sku": "ABC123",
7 "name": "TechBrand Smartphone",
8 "priority": 1,
9 "basePrice": 1199,
10 "active": true,
11 "review": null,
12 "isGiftCard": false,
13 "stock": null,
14 "stocks": null,
15 "originalPrice": null,
16 "price": null,
17 "priceRules": null,
18 "brand": null,
19 "flags": null,
20 "tax": null,
21 "indicatedProducts": null,
22 "relatedProducts": null,
23 "filters": null,
24 "seals": null,
25 "mainCategory": null,
26 "categories": null,
27 "categoryBreadcrumb": null,
28 "dimensions": null,
29 "parentProductId": null,
30 "combination": [],
31 "currentAttributes": null,
32 "variations": null,
33 "medias": null,
34 "bannerGroups": [],
35 "status": null,
36 "createdAt":09",
37 "updatedAt":32",
38 "url": "",
39 "urls": [],
40 "linkedTradePolicies": null,
41 "description": null
42 }
43 "menu": {
44 "brands": [
45 {
46 "id": 10,
47 "name": "TechBrand",
48 "logo"://cdn.loja.com.br/brands/techbrand-logo.webp",
49 "url":"/marca/techbrand"
50 }
51 ],
52 "categories": [
53 {
54 "id": 123,
55 "name": "Smartphones",
56 "url": "tecnologia/smartphones"
57 }
58 ],
59 "filters": [
60 {
61 "id": 123,
62 "name":",
63 "showInSpecificationTable": true,
64 "values": {
65 "0": {
66 "id": 1234,
67 "name": "120GB",
68 "image": null,
69 "originalImage": null,
70 "color": null,
71 "order": 0,
72 "value": null
73 }
74 }
75 }
76 ],
77 "seals": [
78 {
79 "id":1234,
80 "name":"Frete Grátis",
81 "textColor":"#FFFFFF",
82 "sealColor":"#00A650",
83 "image"://cdn.loja.com.br/seals/frete-gratis.png",
84 }
85 ],
86 "attributes": [
87 {
88 "id": 123,
89 "name": "Cor",
90 "displayName": "",
91 "includeSample": false,
92 "values": [
93 {
94 "id": 1234,
95 "label": "Azul",
96 "image": null,
97 "originalImage": null,
98 "color": "#007BFF",
99 "order": 7
100 }
101 ],
102 "createdAt":00",
103 "updatedAt":00"
104 }
105 ],
106 "prices": [
107 {
108 "min": 1,
109 "max": 100
110 },
111 ]
112 },
113 "content": [
114 "registers": [
115 {
116 "id": 44,
117 "type": "product",
118 "sku": "ABC123",
119 "name": "TechBrand Smartphone",
120 "priority": 1,
121 "basePrice": 1199,
122 "active": true,
123 "review": null,
124 "isGiftCard": false,
125 "stock": null,
126 "stocks": null,
127 "originalPrice": null,
128 "price": null,
129 "priceRules": null,
130 "brand": null,
131 "flags": null,
132 "tax": null,
133 "indicatedProducts": null,
134 "relatedProducts": null,
135 "filters": null,
136 "seals": null,
137 "mainCategory": null,
138 "categories": null,
139 "categoryBreadcrumb": null,
140 "dimensions": null,
141 "parentProductId": null,
142 "combination": [],
143 "currentAttributes": null,
144 "variations": null,
145 "medias": null,
146 "bannerGroups": [],
147 "status": null,
148 "createdAt":09",
149 "updatedAt":32",
150 "url": "",
151 "urls": [],
152 "linkedTradePolicies": null,
153 "description": null
154 }
155 ]
156 ],
157 "pagination": {
158 "limit": 10,
159 "offset": 0,
160 "pages": 1,
161 "registers": 2
162 }
163}

Tipo: Categoria

1{
2 "type": "category",
3 "entity": {
4 "id": 1234,
5 "parentProductCategoryId": null,
6 "code": "category-code",
7 "name": "Smartphones",
8 "productOrdering": "",
9 "active": true,
10 "directAccess": true,
11 "bannerGroups": [],
12 "createdAt":03",
13 "updatedAt":03",
14 "tree": {
15 "current": null,
16 "children": [
17 {
18 "id": 1234,
19 "name": "Telas",
20 "url": "smartphones/telas"
21 }
22 ],
23 "sisters": [],
24 "parent": [
25 {
26 "id": 1234,
27 "name": "Tecnologia",
28 "url": "tecnologia"
29 }
30 ]
31 },
32 "filters": [],
33 "url": "smartphones",
34 "urls": [],
35 "linkedTradePolicies": null,
36 "description": {
37 "id": 1234,
38 "tradePolicyId": 1,
39 "name": "smartphones",
40 "shortDescription": "smartphones de todos os tipos",
41 "videoUrl": "",
42 "searchDescription": "Encontre os melhores smartphones!",
43 "description": null,
44 "customDescription1": null,
45 "customDescription2": null,
46 "customDescription3": null,
47 "measureTable": null,
48 "seoTitle": null,
49 "seoDescription": null,
50 "seoKeywords": "",
51 "seoCanonical": "",
52 "seoSocialTitle": "",
53 "seoSocialDescription": null,
54 "seoTwitterImageUrl": "",
55 "seoGraphImageUrl": "",
56 "seoGoogleCategoryId": 0,
57 "seoIndexOnGoogle": false,
58 "seoGoogleCondition": "",
59 "seoGoogleAgeGroup": "",
60 "seoGoogleGender": "",
61 "productId": null,
62 "productCategoryId": 4,
63 "productBrandId": null,
64 "productPageId": null
65 }
66 },
67 "menu": {
68 "brands": [
69 {
70 "id": 10,
71 "name": "TechBrand",
72 "logo"://cdn.loja.com.br/brands/techbrand-logo.webp",
73 "url":"/marca/techbrand"
74 }
75 ],
76 "categories": [
77 {
78 "id": 123,
79 "name": "Smartphones",
80 "url": "tecnologia/smartphones"
81 }
82 ],
83 "filters": [
84 {
85 "id": 123,
86 "name":",
87 "showInSpecificationTable": true,
88 "values": {
89 "0": {
90 "id": 1234,
91 "name": "120GB",
92 "image": null,
93 "originalImage": null,
94 "color": null,
95 "order": 0,
96 "value": null
97 }
98 }
99 }
100 ],
101 "seals": [
102 {
103 "id":1234,
104 "name":"Frete Grátis",
105 "textColor":"#FFFFFF",
106 "sealColor":"#00A650",
107 "image"://cdn.loja.com.br/seals/frete-gratis.png",
108 }
109 ],
110 "attributes": [
111 {
112 "id": 123,
113 "name": "Cor",
114 "displayName": "",
115 "includeSample": false,
116 "values": [
117 {
118 "id": 1234,
119 "label": "Azul",
120 "image": null,
121 "originalImage": null,
122 "color": "#007BFF",
123 "order": 7
124 }
125 ],
126 "createdAt":00",
127 "updatedAt":00"
128 }
129 ],
130 "prices": [
131 {
132 "min": 1,
133 "max": 100
134 },
135 ]
136 },
137 "content": [
138 "registers": [
139 {
140 "id": 44,
141 "type": "product",
142 "sku": "ABC123",
143 "name": "TechBrand Smartphone",
144 "priority": 1,
145 "basePrice": 1199,
146 "active": true,
147 "review": null,
148 "isGiftCard": false,
149 "stock": null,
150 "stocks": null,
151 "originalPrice": null,
152 "price": null,
153 "priceRules": null,
154 "brand": null,
155 "flags": null,
156 "tax": null,
157 "indicatedProducts": null,
158 "relatedProducts": null,
159 "filters": null,
160 "seals": null,
161 "mainCategory": null,
162 "categories": null,
163 "categoryBreadcrumb": null,
164 "dimensions": null,
165 "parentProductId": null,
166 "combination": [],
167 "currentAttributes": null,
168 "variations": null,
169 "medias": null,
170 "bannerGroups": [],
171 "status": null,
172 "createdAt":09",
173 "updatedAt":32",
174 "url": "",
175 "urls": [],
176 "linkedTradePolicies": null,
177 "description": null
178 }
179 ],
180 "pagination": {
181 "limit": 10,
182 "offset": 0,
183 "pages": 1,
184 "registers": 2
185 }
186 ]
187}

Tipo: Marca

1{
2 "type": "brand",
3 "entity": {
4 "id": 1234,
5 "code": "marca-techbrand",
6 "name": "TechBrand",
7 "logo"://cdn.loja.com.br/brands/techbrand-xyz-pro-01.webp",
8 "originalLogo"://cdn.loja.com.br/brands/techbrand-xyz-pro-01.jpg",
9 "productOrdering": "",
10 "active": true,
11 "bannerGroups": [],
12 "createdAt":36",
13 "updatedAt":33",
14 "url": "techbrand",
15 "urls": [],
16 "linkedTradePolicies": null,
17 "description": {
18 "id": 1234,
19 "tradePolicyId": 1,
20 "name": "TechBrand",
21 "shortDescription": "Descrição da marca TechBrand",
22 "videoUrl": "",
23 "searchDescription": null,
24 "description": null,
25 "customDescription1": null,
26 "customDescription2": null,
27 "customDescription3": null,
28 "measureTable": null,
29 "seoTitle": "",
30 "seoDescription": null,
31 "seoKeywords": "",
32 "seoCanonical": "",
33 "seoSocialTitle": "",
34 "seoSocialDescription": null,
35 "seoTwitterImageUrl": "",
36 "seoGraphImageUrl": "",
37 "seoGoogleCategoryId": 0,
38 "seoIndexOnGoogle": false,
39 "seoGoogleCondition": "",
40 "seoGoogleAgeGroup": "",
41 "seoGoogleGender": "",
42 "productId": null,
43 "productCategoryId": null,
44 "productBrandId": 1234,
45 "productPageId": null
46 }
47 },
48 "menu": {
49 "brands": [
50 {
51 "id": 10,
52 "name": "TechBrand",
53 "logo"://cdn.loja.com.br/brands/techbrand-logo.webp",
54 "url":"/marca/techbrand"
55 }
56 ],
57 "categories": [
58 {
59 "id": 123,
60 "name": "Smartphones",
61 "url": "tecnologia/smartphones"
62 }
63 ],
64 "filters": [
65 {
66 "id": 123,
67 "name":",
68 "showInSpecificationTable": true,
69 "values": {
70 "0": {
71 "id": 1234,
72 "name": "120GB",
73 "image": null,
74 "originalImage": null,
75 "color": null,
76 "order": 0,
77 "value": null
78 }
79 }
80 }
81 ],
82 "seals": [
83 {
84 "id":1234,
85 "name":"Frete Grátis",
86 "textColor":"#FFFFFF",
87 "sealColor":"#00A650",
88 "image"://cdn.loja.com.br/seals/frete-gratis.png",
89 }
90 ],
91 "attributes": [
92 {
93 "id": 123,
94 "name": "Cor",
95 "displayName": "",
96 "includeSample": false,
97 "values": [
98 {
99 "id": 1234,
100 "label": "Azul",
101 "image": null,
102 "originalImage": null,
103 "color": "#007BFF",
104 "order": 7
105 }
106 ],
107 "createdAt":00",
108 "updatedAt":00"
109 }
110 ],
111 "prices": [
112 {
113 "min": 1,
114 "max": 100
115 },
116 ]
117 },
118 "content": [
119 "registers": [
120 {
121 "id": 44,
122 "type": "product",
123 "sku": "ABC123",
124 "name": "TechBrand Smartphone",
125 "priority": 1,
126 "basePrice": 1199,
127 "active": true,
128 "review": null,
129 "isGiftCard": false,
130 "stock": null,
131 "stocks": null,
132 "originalPrice": null,
133 "price": null,
134 "priceRules": null,
135 "brand": null,
136 "flags": null,
137 "tax": null,
138 "indicatedProducts": null,
139 "relatedProducts": null,
140 "filters": null,
141 "seals": null,
142 "mainCategory": null,
143 "categories": null,
144 "categoryBreadcrumb": null,
145 "dimensions": null,
146 "parentProductId": null,
147 "combination": [],
148 "currentAttributes": null,
149 "variations": null,
150 "medias": null,
151 "bannerGroups": [],
152 "status": null,
153 "createdAt":09",
154 "updatedAt":32",
155 "url": "",
156 "urls": [],
157 "linkedTradePolicies": null,
158 "description": null
159 }
160 ],
161 "pagination": {
162 "limit": 10,
163 "offset": 0,
164 "pages": 1,
165 "registers": 2
166 }
167 ]
168}

Tipo: Página

1{
2 "type": "brand",
3 "entity": {
4 "id": 1234,
5 "code": "sobre-nos",
6 "name": "sobre nos",
7 "active": true,
8 "bannerGroups": [],
9 "createdAt":03",
10 "updatedAt":03",
11 "url": "pagina/sobre-nos",
12 "urls": [],
13 "linkedTradePolicies": null,
14 "description": {
15 "id": 1234,
16 "tradePolicyId": 1,
17 "name": "Sobre Nos | Loja",
18 "shortDescription": "Somos Techbrand...",
19 "videoUrl": "",
20 "searchDescription": "<p> Techbrand é uma marca... </p>",
21 "description": "",
22 "customDescription1": null,
23 "customDescription2": null,
24 "customDescription3": null,
25 "measureTable": null,
26 "seoTitle": "",
27 "seoDescription": null,
28 "seoKeywords": "",
29 "seoCanonical": "",
30 "seoSocialTitle": "",
31 "seoSocialDescription": null,
32 "seoTwitterImageUrl": "",
33 "seoGraphImageUrl": "",
34 "seoGoogleCategoryId": 0,
35 "seoIndexOnGoogle": false,
36 "seoGoogleCondition": "",
37 "seoGoogleAgeGroup": "",
38 "seoGoogleGender": "",
39 "productId": null,
40 "productCategoryId": null,
41 "productBrandId": null,
42 "productPageId": 1234
43 }
44 },
45 "menu": null,
46 "content": []
47}

Uappi is the most productive way to
build, deploy, and monitor software.

;