Zed API Configuration

First of all we need to decide on the resources being exposed. Those will be mapped inside the ApiDependencyProvider:

<?php
use Spryker\Zed\CustomerApi\Communication\Plugin\Api\CustomerApiResourcePlugin;
use Spryker\Zed\ProductApi\Communication\Plugin\Api\ProductApiResourcePlugin;

    /**
     * @return \Spryker\Zed\Api\Dependency\Plugin\ApiResourcePluginInterface[]
     */
    protected function getApiResourcePluginCollection()
    {
        return [
            new CustomerApiResourcePlugin(),
            new ProductApiResourcePlugin(),
            ...
        ];
    }

Each resource plugin contains a getResourceName() which will map to the resource name of the URI. Those can also be versioned or customized if necessary.

Example: If you create a CustomerApiResourcePlugin containing customer-groups as resource name, the API resource URL is then API prefix (/api/rest/) + resource name, in this case /api/rest/customer-groups.