api-platform / docs

API Platform documentation
https://api-platform.com/docs/
165 stars 1.07k forks source link

Missing doc about how to change base path of ApiPlatform #464

Open Nek- opened 6 years ago

Nek- commented 6 years ago

Hello,

In my apps I change the base path of ApiPlatform by using something similar to that:

# routing/api_platform.yaml
api_platform:
    resource: .
    type: api_platform
    prefix: /v1

api:
    resource: ../api_platform/routes/api.yaml
    prefix:   /v1

But I can't find something about in the documentation. Was it removed? Or is it just missing?

thalion0 commented 4 years ago

Same for me. Currently adding it afterwards

soyuka commented 4 years ago

It's missing you're welcome to add this to https://github.com/api-platform/docs/blob/2.5/core/configuration.md