{
  "openapi": "3.0.3",
  "info": { "title": "Stroymat API", "version": "1.4.2", "description": "B2B REST API для каталога стройматериалов, цен, остатков и заказов." },
  "servers": [ { "url": "https://api.stroymatdv.cc/v1" } ],
  "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer" } } },
  "security": [ { "bearerAuth": [] } ],
  "paths": {
    "/catalog": { "get": { "summary": "Дерево категорий", "responses": { "200": { "description": "OK" } } } },
    "/products": { "get": { "summary": "Список товаров", "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" } } } },
    "/products/{id}": { "get": { "summary": "Карточка товара", "responses": { "200": { "description": "OK" }, "404": { "description": "Not Found" } } } },
    "/stock": { "get": { "summary": "Остатки", "responses": { "200": { "description": "OK" } } } },
    "/prices": { "get": { "summary": "Цены", "responses": { "200": { "description": "OK" } } } },
    "/orders": { "post": { "summary": "Создать заказ", "responses": { "201": { "description": "Created" }, "401": { "description": "Unauthorized" } } } },
    "/orders/{id}": { "get": { "summary": "Статус заказа", "responses": { "200": { "description": "OK" } } } }
  }
}
