mlof / Magento.RestClient

A modern client for the Magento 2.x REST api.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Nice one! #9

Open alex254 opened 1 year ago

alex254 commented 1 year ago

Wow cant believe you have actually made something that makes sense out of the magento apis. chapeau.

Currently we use auto generated swagger code to wrap the magento apis. But they are even more unreadable.....Def going to play around with your library...

just a quick question. I was browsing through the repo but may have missed it...I cant find an implementation to list catalog products? is that still missing,?

mlof commented 1 year ago

Depends entirely on the use case. Do you want to get them nicely formatted, or with all the messy metadata? If the latter, use the AsQueryable method on the product repository. There's an api method for the former, but I haven't implemented it since it uses the magento caching layers, and as such may lag (will definitely lag on large catalogs) behind the actual saved data. If this is not a problem I can implement it for you. It has just never been a priority for me.

alex254 commented 1 year ago

Hi mlof!

Our usecase is product catalog syncing. We provide a whitelabel marketplace solution (retael.com). Basically we need all product information: basic info, media, variations, as well as whether the product is in stock. Stockinfo annoyingly is not provided by the catalog response and needs to be retrieved seperately. Not sure what you mean with messy meta data? Do you mean the product-render-list call which also provides links to carts in the response etc.. we dont use that one.

Best, Alex

DanMarzo commented 8 months ago

Boa tarde @alex254 Sei que não tem nada a ver com o assunto Mas voce saberia me dizer como habilitar o bendito swagger no magento 2.4 Eu realmente não achei nada quanto a esse assunto e estou tentanto usar esse package porem ta dando alguns erros