@baseUrl = https://bartool.ovh/dpm-api @token = _gEp4JyW6uBY7xyKVDo2vKUtCLfPGr3D # @token = K3YEINVfAh1q0EfSPO7YFz_2Zx_CLbSt @webhook = 879074dc-d25a-462e-b693-b994ad8435d5 ### Logowanie # @name login POST {{baseUrl}}/auth/login Content-Type: application/json { "email": "bartoolina@gmail.com", "password": "20madafaka" } ### @auth_token = {{login.response.body.data.access_token}} ### Products GET {{baseUrl}}/items/mayo_products Authorization: Bearer {{auth_token}} ### Products GET {{baseUrl}}/collections Authorization: Bearer {{auth_token}} ### Products with model GET {{baseUrl}}/items/mayo_products?fields=*,model_id.*,order.product_order_index,order.order_id.* Authorization: Bearer {{token}} ### Orders by number GET {{baseUrl}}/items/mayo_orders?filter[order_number][_contains]=1&filter[order_year][_eq]=2025 Authorization: Bearer {{token}} ### moj test GET {{baseUrl}}/items/mayo_order_products?fields=product_id.*,order_id.* Authorization: Bearer {{token}} ### test custom endpoint GET {{baseUrl}}/mayo-api/products Authorization: Bearer {{token}} ### test custom endpoint GET {{baseUrl}}/mayo-api/orders Authorization: Bearer {{token}} ### test custom endpoint GET {{baseUrl}}/mayo-api/my-products Authorization: Bearer {{token}} ### test custom endpoint GET {{baseUrl}}/collections Authorization: Bearer {{token}} ### webhook GET {{baseUrl}}/flows/trigger/{{webhook}}?order=0027&year=2025&index=01 Authorization: Bearer {{auth_token}} ### dane @order = 0367 @year = 2025 @index = 2 ### mayo parse GET http://192.168.1.101:8001/orders/?order_id={{order}}%2F{{year}}%2F{{index}} >res.json