rogergerecke / shopware-6-php-swagger-client
This endpoint reference contains an overview of all endpoints comprising the Shopware Admin API. For a better overview, all CRUD-endpoints are hidden by default. If you want to show also CRUD-endpoints add the query parameter `type=jsonapi`.
Requires
- php: ^7.3 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2022-02-09 16:20:34 UTC
README
This endpoint reference contains an overview of all endpoints comprising the Shopware Admin API.
For a better overview, all CRUD-endpoints are hidden by default. If you want to show also CRUD-endpoints
add the query parameter type=jsonapi
.
Installation & Usage
Requirements
PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: oAuth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); // Configure OAuth2 access token for authorization: oAuth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OpenAPI\Client\Api\AssetManagementApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $media_id = 'media_id_example'; // string | Identifier of the media entity. $extension = 'extension_example'; // string | Extension of the uploaded file. For example `png` $file_name = 'file_name_example'; // string | Name of the uploaded file. If not provided the media identifier will be used as name $body = "/path/to/file.txt"; // \SplFileObject try { $apiInstance->upload($media_id, $extension, $file_name, $body); } catch (Exception $e) { echo 'Exception when calling AssetManagementApi->upload: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://redkitty.de/api
Class | Method | HTTP request | Description |
---|---|---|---|
AssetManagementApi | upload | POST /_action/media/{mediaId}/upload | Upload a file to a media entity |
AuthorizationAuthenticationApi | token | POST /oauth/token | Fetch an access token |
BulkOperationsApi | sync | POST /_action/sync | Bulk edit entities |
DatabaseMigrationsApi | migrate | POST /_action/database/migrate | Execute migrations |
DatabaseMigrationsApi | migrateDestructive | POST /_action/database/migrate-destructive | Execute destructive migrations |
DatabaseMigrationsApi | syncMigrations | POST /_action/database/sync-migration | Sync migrations to the database |
DocumentManagementApi | createDocument | POST /_action/order/{orderId}/document/{documentTypeName} | Create a document for an order |
DocumentManagementApi | downloadDocument | GET /_action/document/{documentId}/{deepLinkCode} | Download a document |
DocumentManagementApi | numberRangeReserve | GET /_action/number-range/reserve/{type}/{saleschannel?} | Reserve or preview a document number |
DocumentManagementApi | uploadToDocument | POST /_action/document/{documentId}/upload | Upload a file for a document |
MailOperationsApi | build | POST /_action/mail-template/build | Preview a mail template |
MailOperationsApi | send | POST /_action/mail-template/send | Send a mail |
MailOperationsApi | validate | POST /_action/mail-template/validate | Validate a mail content |
OrderManagementApi | orderDeliveryStateTransition | POST /_action/order_delivery/{orderDeliveryId}/state/{transition} | Transition an order delivery to a new state |
OrderManagementApi | orderStateTransition | POST /_action/order/{orderId}/state/{transition} | Transition an order to a new state |
OrderManagementApi | orderTransactionStateTransition | POST /_action/order_transaction/{orderTransactionId}/state/{transition} | Transition an order transaction to a new state |
SystemInfoHealthcheckApi | apiInfo | GET /_info/openapi3.json | Get OpenAPI Specification |
SystemInfoHealthcheckApi | businessEvents | GET /_info/events.json | Get Business events |
SystemInfoHealthcheckApi | config | GET /_info/config | Get API information |
SystemInfoHealthcheckApi | flowActions | GET /_info/flow-actions.json | Get actions for flow builder |
SystemInfoHealthcheckApi | infoShopwareVersion | GET /_info/version | Get the Shopware version |
SystemOperationsApi | clearCache | DELETE /_action/cache | Clear caches |
SystemOperationsApi | clearCacheAndScheduleWarmUp | DELETE /_action/cache_warmup | Clear and warm up caches |
SystemOperationsApi | clearContainerCache | DELETE /_action/container_cache | Clear container caches |
SystemOperationsApi | clearOldCacheFolders | DELETE /_action/cleanup | Clear old cache folders |
SystemOperationsApi | consumeMessages | POST /_action/message-queue/consume | Consume messages from the message queue. |
SystemOperationsApi | getMinRunInterval | GET /_action/scheduled-task/min-run-interval | Get the minimum schedules task interval |
SystemOperationsApi | index | POST /_action/index | Run indexer |
SystemOperationsApi | indexing | POST /_action/indexing | Run indexer |
SystemOperationsApi | indexing_0 | POST /_action/indexing/products | Send product indexing message |
SystemOperationsApi | info | GET /_action/cache_info | Get cache information |
SystemOperationsApi | iterate | POST /_action/indexing/{indexer} | Iterate an indexer |
SystemOperationsApi | runScheduledTasks | POST /_action/scheduled-task/run | Run scheduled tasks. |
Models
- AclRole
- AclUserRole
- ActionMailTemplateBuildMailTemplate
- ActionMailTemplateBuildMailTemplateType
- ActionMailTemplateSendBinAttachments
- App
- AppActionButton
- AppCmsBlock
- AppPaymentMethod
- AppTemplate
- BfCategoryMapping
- BfConfig
- BfMarketplace
- BfMarketplaceSalesChannel
- BfMarketplaceSettings
- BfProductToDelete
- BfSupport
- Category
- CategoryTag
- CmsBlock
- CmsPage
- CmsPageConfig
- CmsSection
- CmsSlot
- Country
- CountryCustomerTax
- CountryState
- Currency
- CurrencyCountryRounding
- CurrencyItemRounding
- CustomField
- CustomFieldSet
- CustomFieldSetRelation
- Customer
- CustomerAddress
- CustomerGroup
- CustomerGroupRegistrationSalesChannels
- CustomerRecovery
- CustomerTag
- CustomerWishlist
- CustomerWishlistProduct
- Data
- DeadMessage
- DeliveryTime
- Document
- DocumentBaseConfig
- DocumentBaseConfigSalesChannel
- DocumentType
- Error
- ErrorSource
- EventAction
- EventActionRule
- EventActionSalesChannel
- Failure
- Flow
- FlowSequence
- ImportExportFile
- ImportExportLog
- ImportExportProfile
- Info
- InfoConfigResponse
- InfoConfigResponseAdminWorker
- InfoConfigResponseBundles
- InfoConfigResponseSettings
- InlineObject
- InlineObject1
- InlineObject10
- InlineObject11
- InlineObject12
- InlineObject13
- InlineObject2
- InlineObject3
- InlineObject4
- InlineObject5
- InlineObject6
- InlineObject7
- InlineObject8
- InlineObject9
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse2002
- InlineResponse2003
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- InlineResponse2008
- InlineResponse2009
- Integration
- IntegrationRole
- Jsonapi
- LandingPage
- LandingPageSalesChannel
- LandingPageTag
- Language
- Link
- LinkOneOf
- Linkage
- Locale
- LogEntry
- MailHeaderFooter
- MailTemplate
- MailTemplateMedia
- MailTemplateType
- MainCategory
- Media
- MediaDefaultFolder
- MediaFolder
- MediaFolderConfiguration
- MediaFolderConfigurationMediaThumbnailSize
- MediaTag
- MediaThumbnail
- MediaThumbnailSize
- MessageQueueStats
- NewsletterRecipient
- NewsletterRecipientTag
- Notification
- NumberRange
- NumberRangeSalesChannel
- NumberRangeState
- NumberRangeType
- Order
- OrderAddress
- OrderCustomer
- OrderDelivery
- OrderDeliveryPosition
- OrderLineItem
- OrderPrice
- OrderShippingCosts
- OrderShippingCostsListPrice
- OrderTag
- OrderTransaction
- Pagination
- PaymentMethod
- Plugin
- Product
- ProductCategory
- ProductCategoryTree
- ProductConfiguratorSetting
- ProductCrossSelling
- ProductCrossSellingAssignedProducts
- ProductCustomFieldSet
- ProductExport
- ProductFeatureSet
- ProductKeywordDictionary
- ProductManufacturer
- ProductMedia
- ProductOption
- ProductPrice
- ProductProperty
- ProductReview
- ProductSearchConfig
- ProductSearchConfigField
- ProductSearchKeyword
- ProductSorting
- ProductStream
- ProductStreamFilter
- ProductStreamMapping
- ProductTag
- ProductVisibility
- Promotion
- PromotionCartRule
- PromotionDiscount
- PromotionDiscountPrices
- PromotionDiscountRule
- PromotionIndividualCode
- PromotionOrderRule
- PromotionPersonaCustomer
- PromotionPersonaRule
- PromotionSalesChannel
- PromotionSetgroup
- PromotionSetgroupRule
- PropertyGroup
- PropertyGroupOption
- RelationshipLinks
- RelationshipToOne
- Relationships
- RelationshipsAnyOf
- Resource
- Rule
- RuleCondition
- SalesChannel
- SalesChannelAnalytics
- SalesChannelCountry
- SalesChannelCurrency
- SalesChannelDomain
- SalesChannelLanguage
- SalesChannelPaymentMethod
- SalesChannelShippingMethod
- SalesChannelType
- Salutation
- ScheduledTask
- Script
- SeoUrl
- SeoUrlTemplate
- ShippingMethod
- ShippingMethodPrice
- ShippingMethodTag
- Snippet
- SnippetSet
- StateMachine
- StateMachineHistory
- StateMachineState
- StateMachineTransition
- Success
- SystemConfig
- SystemConfigConfigurationValue
- Tag
- Tax
- TaxRule
- TaxRuleData
- TaxRuleType
- Theme
- ThemeMedia
- ThemeSalesChannel
- Unit
- User
- UserAccessKey
- UserConfig
- UserRecovery
- Webhook
- WebhookEventLog
Authorization
oAuth
- Type:
OAuth
- Flow:
password
- Authorization URL: ``
- Scopes:
- write: Full write access
oAuth
- Type:
OAuth
- Flow:
application
- Authorization URL: ``
- Scopes:
- write: Full write access
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
6.4.8.0
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen