Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Catalog service #26

Merged
merged 15 commits into from
Oct 22, 2024
Merged

feat: Catalog service #26

merged 15 commits into from
Oct 22, 2024

Conversation

dylandepass
Copy link
Contributor

@dylandepass dylandepass commented Oct 17, 2024

This PR adds support for the helix catalog service API. I also did some restructuring to the code.

The Catalog API is as follows

Create/Update a product
PUT https://adobe-commerce-api-ci.adobeaem.workers.dev/{org}/{site}/catalog/{env}/{storeCode}/{storeViewCode}/product/{sku}

Product JSON should be in the body and should follow the same stucture as the catalog service in order for the HTML template to render correctly
This operation will both preview and publish the related page

Get a product
GET https://adobe-commerce-api-ci.adobeaem.workers.dev/{org}/{site}/catalog/{env}/{storeCode}/{storeViewCode}/product/{sku}

List all products
GET https://adobe-commerce-api-ci.adobeaem.workers.dev/{org}/{site}/catalog/{env}/{storeCode}/{storeViewCode}/lookup

Lookup product by urlKey
GET https://adobe-commerce-api-ci.adobeaem.workers.dev/{org}/{site}/catalog/{env}/{storeCode}/{storeViewCode}/lookup?urlKey={urlKey}

  • Restructure code
  • Cleanup
  • Tests

magentoStoreViewCode: string;
magentoStoreCode: string;
env:string;
storeViewCode: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these additions are just required for the catalog route.. Wondering if I should just create another type for these.

@dylandepass dylandepass marked this pull request as ready for review October 18, 2024 20:16
@dylandepass dylandepass changed the title WIP: Catalog service Catalog service Oct 18, 2024
@dylandepass dylandepass changed the title Catalog service feat: Catalog service Oct 18, 2024
@dylandepass dylandepass merged commit 28cceb8 into main Oct 22, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant