@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Legacy Search API
@base https://apiexamples.vtexcommercestable.com.br
@version 1.0
@auth ApiKey X-VTEX-API-AppKey in header | ApiKey X-VTEX-API-AppToken in header | ApiKey VtexIdclientAutCookie in header
@common_fields {Accept: str, Content-Type: str}
@endpoints 15
@toc api(14), buscaautocomplete(1)

@group api
@endpoint GET /api/catalog_system/pub/products/crossselling/whosawalsosaw/{productId}
@required {productId: int}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/crossselling/whosawalsobought/{productId}
@required {productId: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/crossselling/whoboughtalsobought/{productId}
@required {productId: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/crossselling/showtogether/{productId}
@required {productId: int}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/crossselling/accessories/{productId}
@required {productId: int}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/crossselling/similars/{productId}
@required {productId: int}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/crossselling/suggestions/{productId}
@required {productId: int}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/search/{search}
@required {search: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/search
@optional {_from: str, _to: str, ft: str, fq: str, O: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/search/{product-text-link}/p
@required {product-text-link: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/offers/{productId}
@required {productId: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/products/offers/{productId}/sku/{skuId}
@required {productId: str, skuId: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/facets/category/{categoryId}
@required {categoryId: str}
@optional {_from: str, _to: str}
@returns(200)

@endpoint GET /api/catalog_system/pub/facets/search/{term}
@required {map: str, term: str}
@returns(200) {Departments: [map], Brands: [map], SpecificationFilters: map, CategoriesTrees: [map], PriceRanges: [any], Summary: map{Departments: map{DisplayedItems: int, TotalItems: int}, CategoriesTrees: map{DisplayedItems: int, TotalItems: int}, Brands: map{DisplayedItems: int, TotalItems: int}, PriceRanges: map{DisplayedItems: int, TotalItems: int}, SpecificationFilters: map}}

@endgroup

@group buscaautocomplete
@endpoint GET /buscaautocomplete
@required {productNameContains: str}
@returns(200) {itemsReturned: [map]}

@endgroup

@end
