Add batch 2 API endpoints (~40 new endpoints)#167
Closed
Amoifr wants to merge 20 commits intoPrestaShop:devfrom
Closed
Add batch 2 API endpoints (~40 new endpoints)#167Amoifr wants to merge 20 commits intoPrestaShop:devfrom
Amoifr wants to merge 20 commits intoPrestaShop:devfrom
Conversation
Update main branch with initial module with a simple endpoint
Merge dev into main
Release version 0.1.0
Release 0.2.0
Release 0.3.0
Release 0.4.0
Release 0.5.0
|
Hello @Amoifr! This is your first pull request on ps_apiresources repository of the PrestaShop project. Thank you, and welcome to this Open Source community! |
Add API endpoints for managing product packs:
- GET /products/{productId}/pack - Get packed products
- PUT /products/{productId}/pack - Set pack products
- DELETE /products/{productId}/pack - Remove all products from pack
Add API endpoints for managing product suppliers:
- GET /products/{productId}/suppliers - Get associated suppliers
- GET /products/{productId}/supplier-options - Get supplier options
- PUT /products/{productId}/suppliers - Set suppliers
- PATCH /products/{productId}/suppliers - Update supplier details
- DELETE /products/{productId}/suppliers - Remove all suppliers
- PUT /products/{productId}/default-supplier - Set default supplier
Add API endpoints for managing product attachments:
- PUT /products/{productId}/attachments - Set product attachments
- DELETE /products/{productId}/attachments - Remove all attachments
Add API endpoints for managing product customization fields:
- GET /products/{productId}/customization-fields - Get customization fields
- PUT /products/{productId}/customization-fields - Set customization fields
- DELETE /products/{productId}/customization-fields - Remove all fields
Add various product read-only query endpoints:
- GET /products/{productId}/attribute-groups
- GET /products/{productId}/feature-values
- GET /products/{productId}/is-enabled
- GET /products/{productId}/stock-movements
- GET /products/{productId}/shop-images
- GET /products/{productId}/related-products
- GET /products/{productId}/catalog-price-rules
Add API endpoints for managing products in orders:
- PUT /orders/{orderId}/products/{orderDetailId} - Update product
- DELETE /orders/{orderId}/products/{orderDetailId} - Delete product
Note: AddProductToOrderCommand uses static factory methods
and requires a custom processor for proper API integration.
Add API endpoints for managing order returns:
- GET /order-returns/{orderReturnId} - Get order return
- PATCH /order-returns/{orderReturnId}/state - Update return state
Add API endpoints for advanced category operations:
- GET /categories/tree - Get full category tree
- PATCH /categories/{categoryId}/position - Update category position
Add API endpoints for carrier configuration:
- PUT /carriers/{carrierId}/ranges - Set delivery ranges
- PUT /carriers/{carrierId}/tax-rule-group - Set tax rule group
Add API endpoints for currency queries:
- GET /currencies/exchange-rate/{isoCode} - Get exchange rate
- GET /currencies/reference/{isoCode} - Get reference currency data
Add API endpoints for country management:
- GET /countries/{countryId}/required-fields - Get required fields
- PATCH /countries/{countryId} - Edit country configuration
Add API endpoints for image settings: - GET /image-settings - Get current settings - PUT /image-settings - Edit settings
Add API endpoint for retrieving shop logos: - GET /shop/logos - Get header, email, invoice and favicon logos
841a1a8 to
01ab32f
Compare
This was referenced Mar 30, 2026
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds approximately 40 new API endpoints covering various domains that were identified as uncovered in issue #39630.
New endpoints by domain:
Product Pack (
ProductPack.php)GET /products/{productId}/pack- Get packed productsPUT /products/{productId}/pack- Set pack productsDELETE /products/{productId}/pack- Remove all products from packProduct Suppliers (
ProductSuppliers.php,ProductDefaultSupplier.php)GET /products/{productId}/suppliers- Get associated suppliersGET /products/{productId}/supplier-options- Get supplier optionsPUT /products/{productId}/suppliers- Set suppliersPATCH /products/{productId}/suppliers- Update supplier detailsDELETE /products/{productId}/suppliers- Remove all suppliersPUT /products/{productId}/default-supplier- Set default supplierProduct Attachments (
ProductAttachments.php)PUT /products/{productId}/attachments- Set product attachmentsDELETE /products/{productId}/attachments- Remove all attachmentsProduct Customizations (
ProductCustomizations.php)GET /products/{productId}/customization-fields- Get customization fieldsPUT /products/{productId}/customization-fields- Set customization fieldsDELETE /products/{productId}/customization-fields- Remove all fieldsProduct Queries (
ProductQueries.php)GET /products/{productId}/attribute-groupsGET /products/{productId}/feature-valuesGET /products/{productId}/is-enabledGET /products/{productId}/stock-movementsGET /products/{productId}/shop-imagesGET /products/{productId}/related-productsGET /products/{productId}/catalog-price-rulesOrder Products (
OrderProducts.php)PUT /orders/{orderId}/products/{orderDetailId}- Update product in orderDELETE /orders/{orderId}/products/{orderDetailId}- Delete product from orderOrder Return (
OrderReturn.php)GET /order-returns/{orderReturnId}- Get order returnPATCH /order-returns/{orderReturnId}/state- Update return stateCategory (
CategoryQueries.php)GET /categories/tree- Get full category treePATCH /categories/{categoryId}/position- Update category positionCarrier (
CarrierSettings.php)PUT /carriers/{carrierId}/ranges- Set delivery rangesPUT /carriers/{carrierId}/tax-rule-group- Set tax rule groupCurrency (
CurrencyQueries.php)GET /currencies/exchange-rate/{isoCode}- Get exchange rateGET /currencies/reference/{isoCode}- Get reference currency dataCountry (
Country.php)GET /countries/{countryId}/required-fields- Get required fieldsPATCH /countries/{countryId}- Edit country configurationImageSettings (
ImageSettings.php)GET /image-settings- Get current settingsPUT /image-settings- Edit settingsShop (
ShopLogos.php)GET /shop/logos- Get header, email, invoice and favicon logosTest plan
Related
Contributes to #39630