fix products listing

This commit is contained in:
2026-03-27 23:17:21 +01:00
parent ec05101037
commit 9ec329b1d6
429 changed files with 9816 additions and 3774 deletions

9
bruno/api_v1/.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
# Secrets
.env*
# Dependencies
node_modules
# OS files
.DS_Store
Thumbs.db

View File

@@ -0,0 +1,21 @@
info:
name: Change Locales
type: http
seq: 4
http:
method: POST
url: "{{bas_url}}/public/auth/update-choice?lang_id=1"
params:
- name: lang_id
value: "1"
type: query
auth:
type: bearer
token: "{{token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,20 @@
info:
name: Create Search Index
type: http
seq: 2
http:
method: GET
url: "{{bas_url}}/restricted/search/create-index"
body:
type: json
data: ""
auth:
type: bearer
token: "{{token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,17 @@
info:
name: Delete Index - MeiliSearch
type: http
seq: 7
http:
method: DELETE
url: http://localhost:7700/indexes/shop_1_lang_2
auth:
type: bearer
token: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,36 @@
info:
name: Products List
type: http
seq: 1
http:
method: GET
url: "{{bas_url}}/restricted/list-products/get-listing?p=1&elems=30&sort=product_id,asc&category_id_in=243&reference=~62"
params:
- name: p
value: "1"
type: query
- name: elems
value: "30"
type: query
- name: sort
value: product_id,asc
type: query
- name: category_id_in
value: "243"
type: query
- name: reference
value: ~62
type: query
body:
type: json
data: ""
auth:
type: bearer
token: "{{token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,17 @@
info:
name: Search Index Settings
type: http
seq: 5
http:
method: POST
url: "{{bas_url}}/restricted/search/settings"
auth:
type: bearer
token: "{{token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,28 @@
info:
name: Search Items
type: http
seq: 3
http:
method: POST
url: "{{bas_url}}/restricted/search/search"
body:
type: json
data: |-
{
"q": "kinder",
"limit": 50,
"offset": 0,
// "filter": "'attr.10'= 71",
"facets":["category_ids", "price"]
// "facets": ["category_ids", "attr", "feat", "price"]
}
auth:
type: bearer
token: "{{token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5

View File

@@ -0,0 +1,6 @@
name: dev
variables:
- name: bas_url
value: http://localhost:3000/api/v1
- name: token
value: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImdvY21hcmVrQGdtYWlsLmNvbSIsInVzZXJuYW1lIjoiZ29jbWFyZWtAZ21haWwuY29tIiwiY3VzdG9tZXJfcm9sZSI6InVzZXIiLCJjYXJ0c19pZHMiOltdLCJsYW5nX2lkIjoyLCJjb3VudHJ5X2lkIjoyLCJleHAiOjE3NzQ4OTUxNTAsImlhdCI6MTc3NDgwODc1MH0.q4ed45YNxWiH-4gmhtwzxxsIbAzELx8Rn8W5OT_W_cc

View File

@@ -0,0 +1,10 @@
opencollection: 1.0.0
info:
name: api_v1
bundled: false
extensions:
bruno:
ignore:
- node_modules
- .git