@baseUrl = https://bartool.ovh/dpm-api @token = _gEp4JyW6uBY7xyKVDo2vKUtCLfPGr3D ### Health check - Directus server GET {{baseUrl}}/server/health ### 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}} ### Mayo API - products GET {{baseUrl}}/mayo-api/products Authorization: Bearer {{auth_token}} ### Mayo API - products with pagination GET {{baseUrl}}/mayo-api/products?limit=30&offset=0 Authorization: Bearer {{auth_token}} ### Mayo API - products by order search # orderSearch is a JSON string. This example matches order number 0143/2025/1. GET {{baseUrl}}/mayo-api/products?search=0143/2025/1&orderSearch=[{"raw":"0143/2025/1","type":"fullOrderId","match":"exact","orderNumber":143,"orderNumberPrefix":null,"orderYear":2025,"orderIndex":1}] Authorization: Bearer {{auth_token}} ### Mayo API - products by year GET {{baseUrl}}/mayo-api/products?year=2025 Authorization: Bearer {{auth_token}} ### Mayo API - products by model id GET {{baseUrl}}/mayo-api/products?model=2 Authorization: Bearer {{auth_token}} ### Mayo API - products by client id GET {{baseUrl}}/mayo-api/products?client=1 Authorization: Bearer {{auth_token}} ### Mayo API - products by production list id GET {{baseUrl}}/mayo-api/products?productionList=1 Authorization: Bearer {{auth_token}} ### Mayo API - products by finish GET {{baseUrl}}/mayo-api/products?finish=MAT Authorization: Bearer {{auth_token}} ### Mayo API - dictionaries GET {{baseUrl}}/mayo-api/dictionaries Authorization: Bearer {{auth_token}}