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

[BETA] Upgrading API for Sylius 1.9 and newer #2

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

gplanchat
Copy link
Contributor

@gplanchat gplanchat commented Oct 16, 2021

Create all Admin API endpoints

  • AdminUserToken
    • πŸ‘¨β€πŸ’Ό authenticateByPassword
  • Address
    • πŸ‘¨β€πŸ’Ό get
  • Adjustment
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list (filtered on on Order Items)
  • Administrator
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • AvatarImage
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό delete
  • CatalogPromotionTranslation (v1.11)
    • πŸ‘¨β€πŸ’Ό get
  • CatalogPromotion (v1.11)
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό upsert
  • Channel
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό delete
  • ShopBillingData
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list (filtered on on Channel)
  • Country
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό upsert
  • Province
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list (filtered on on Country)
    • πŸ‘¨β€πŸ’Ό upsert
  • Currency
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
  • CustomerGroup
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • Customer
    • πŸ‘¨β€πŸ’Ό get
  • ExchangeRate
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • Locale
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
  • OrderItemUnit
    • πŸ‘¨β€πŸ’Ό get
  • OrderItem
    • πŸ‘¨β€πŸ’Ό get
  • Order
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό cancel
    • πŸ‘¨β€πŸ’Ό listPayments
    • πŸ‘¨β€πŸ’Ό listShipments
  • Payment
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό complete
  • Shipment
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό ship
  • PaymentMethod
    • πŸ‘¨β€πŸ’Ό get
  • ProductAssociationTypeTranslation
    • πŸ‘¨β€πŸ’Ό get
  • ProductAssociationType
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • ProductImage
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
  • ProductOptionTranslation
    • πŸ‘¨β€πŸ’Ό get
  • ProductOptionValue
    • πŸ‘¨β€πŸ’Ό get
  • ProductOption
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό listValues
  • ProductReview
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
    • πŸ‘¨β€πŸ’Ό accept
    • πŸ‘¨β€πŸ’Ό reject
  • ProductTaxon
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
  • ProductTranslation
    • πŸ‘¨β€πŸ’Ό get
  • ProductVariantTranslation
    • πŸ‘¨β€πŸ’Ό get
  • ProductVariant
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
  • Product
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • Promotion
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό delete
  • ShippingCategory
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • ShippingMethodTranslation
    • πŸ‘¨β€πŸ’Ό get
  • ShippingMethod
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
    • πŸ‘¨β€πŸ’Ό archive
    • πŸ‘¨β€πŸ’Ό restore
  • TaxCategory
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • TaxonTranslation
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
  • Taxon
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
  • ZoneMember
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list (filtered on on Zone)
  • Zone
    • πŸ‘¨β€πŸ’Ό get
    • πŸ‘¨β€πŸ’Ό list
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό upsert
    • πŸ‘¨β€πŸ’Ό delete
  • VerifyCustomerAccount
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό acknowledge
  • ResetPasswordRequest
    • πŸ‘¨β€πŸ’Ό create
    • πŸ‘¨β€πŸ’Ό acknowledge

Create all Shop API endpoints

  • ShopUserToken
    • πŸ‘› authenticateByPassword
  • Address
    • πŸ‘› list
    • πŸ‘› create
    • πŸ‘› get
    • πŸ‘› delete
  • Adjustment
    • πŸ‘› get
    • πŸ‘› list (filtered on on Order Items)
  • CatalogPromotion
    • πŸ‘› get
  • Channel
    • πŸ‘› get
  • Country
    • πŸ‘› get
    • πŸ‘› list
  • Currency
    • πŸ‘› get
    • πŸ‘› list
  • Customer
    • πŸ‘› get
    • πŸ‘› create
    • πŸ‘› upsert
    • πŸ‘› changePassword
  • Locale
    • πŸ‘› get
    • πŸ‘› list
  • OrderItemUnit
    • πŸ‘› get
  • OrderItem
    • πŸ‘› get
    • πŸ‘› list (filtered on on Order)
    • πŸ‘› create (filtered on on Order)
    • πŸ‘› delete (filtered on on Order)
    • πŸ‘› changeQuantity (filtered on on Order)
    • πŸ‘› listAdjustments (filtered on on Order and OrderItem)
  • Order
    • πŸ‘› get
    • πŸ‘› list
    • πŸ‘› create
    • πŸ‘› upsert
    • πŸ‘› delete
    • πŸ‘› listPaymentMethods
    • πŸ‘› listShipmentMethods
    • πŸ‘› listAdjustments
    • πŸ‘› listItems
    • πŸ‘› choosePayment
    • πŸ‘› chooseShipment
    • πŸ‘› complete
  • Payment
    • πŸ‘› get
    • πŸ‘› listMethods
  • Shipment
    • πŸ‘› get
    • πŸ‘› listMethods
  • PaymentMethod
    • πŸ‘› get
    • πŸ‘› list
  • ProductImage
    • πŸ‘› get
  • ProductOptionValue
    • πŸ‘› get
  • ProductOption
    • πŸ‘› get
  • ProductReview
    • πŸ‘› get
    • πŸ‘› list
    • πŸ‘› create
  • ProductTaxon
    • πŸ‘› get
  • ProductTranslation
    • πŸ‘› get
  • ProductVariantTranslation
    • πŸ‘› get
  • ProductVariant
    • πŸ‘› get
    • πŸ‘› list
  • Product
    • πŸ‘› get
    • πŸ‘› getBySlug
    • πŸ‘› list
  • ShippingMethodTranslation
    • πŸ‘› get
  • ShippingMethod
    • πŸ‘› get
    • πŸ‘› list
  • TaxonTranslation
    • πŸ‘› get
  • Taxon
    • πŸ‘› get
    • πŸ‘› list
  • VerifyCustomerAccount
    • πŸ‘› create
    • πŸ‘› verify
  • ResetPasswordRequest
    • πŸ‘› create
    • πŸ‘› verify

Other

  • Create a way to differentiate shop and admin APIs
  • Keep classes to access the deprecated API endpoints (Admin API and Store API)

Breaking Changes

We are making the best efforts in order to have the minimum breaking changes.

  • Every class in the namespace Diglin\Sylius\ApiClient\Api were moved to Diglin\Sylius\ApiClient\Api\Legacy

Changes with deprecation notice

  • The class Diglin\Sylius\ApiClient\SyliusClient was renamed Diglin\Sylius\ApiClient\SyliusLegacyClient
  • The class Diglin\Sylius\ApiClient\SyliusClientBuilder was renamed Diglin\Sylius\ApiClient\SyliusLegacyClientBuilder
  • The interface Diglin\Sylius\ApiClient\SyliusClientBuilderInterface was renamed Diglin\Sylius\ApiClient\SyliusLegacyClientBuilderInterface
  • The interface Diglin\Sylius\ApiClient\SyliusClientInterface was renamed Diglin\Sylius\ApiClient\SyliusLegacyClientInterface
  • The interface Diglin\Sylius\ApiClient\SyliusClientDecorator was renamed Diglin\Sylius\ApiClient\SyliusLegacyClientDecorator

@gplanchat gplanchat requested a review from sylvainraye October 16, 2021 10:17
@gplanchat gplanchat changed the title Upgrading API for Sylius 1.9 and newer [WIP] Upgrading API for Sylius 1.9 and newer Oct 16, 2021
@gplanchat gplanchat self-assigned this Oct 26, 2021
@gplanchat gplanchat added enhancement New feature or request help wanted Extra attention is needed labels Oct 26, 2021
@gplanchat gplanchat changed the title [WIP] Upgrading API for Sylius 1.9 and newer [GTM] Upgrading API for Sylius 1.9 and newer Apr 9, 2022
@gplanchat gplanchat changed the title [GTM] Upgrading API for Sylius 1.9 and newer [BETA] Upgrading API for Sylius 1.9 and newer Apr 9, 2022
@gplanchat gplanchat closed this May 23, 2022
@gplanchat gplanchat deleted the next branch May 23, 2022 08:54
@gplanchat gplanchat restored the next branch May 23, 2022 09:00
@gplanchat gplanchat reopened this May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

Successfully merging this pull request may close these issues.

1 participant