Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 879 Bytes

15_Customize_Endpoint_URL.md

File metadata and controls

29 lines (22 loc) · 879 Bytes

Customizing the endpoint

The standard endpoint is

/pimcore-graphql-webservices/{clientname}?apikey={yourApiKey}

So if your configuration name is blogdemo and your apikey 123456 then your endpoint would be

/pimcore-graphql-webservices/blogdemo?apikey=12345

Here is a configuration example showing how to override the standard endpoint:

# app/config/routing.yml

# Changing URL to the explorer environement
admin_pimcoredatahub_config:
  path: /pimcore-datahub-webservices-my-endpoint/explorer/{clientname}
  defaults: { _controller: Pimcore\Bundle\DataHubBundle\Controller\GraphQLExplorerController::explorerAction }

# Changing endoint URL
admin_pimcoredatahub_webservice:
  path: /pimcore-graphql-webservices-my-endpoint/{clientname}
  defaults: { _controller: Pimcore\Bundle\DataHubBundle\Controller\WebserviceController::webonyxAction }