Core: Path generated in the Swagger doc don't take into account `app_dev.php`

Created on 3 Sep 2016  路  3Comments  路  Source: api-platform/core

Steps to reproduce:

  1. Install API Platform using Docker
  2. Download http://localhost/app_dev.php/doc.json

The Swagger document should include app_dev.php paths, it doesn't.
So, when using Swagger UI in dev mode, requests are sent in prod mode.

cc @Simperfit

bug

All 3 comments

@dunglas I've checked this issue and I can't reproduce it (with last api-platform/api-platform)

here is my view with a dummy entity :
capture d ecran 2016-09-03 a 17 46 59

I just checked with @Simperfit and we confirm this bug impact dev-master (but not the last beta).

This bug has probably been introduced in #666 (cc @Ener-Getick). Maybe should we call an exorcist.

This should be fixed using basePath i guess, i'll try to do that tonight.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

breitsmiley picture breitsmiley  路  3Comments

CvekCoding picture CvekCoding  路  3Comments

desmax picture desmax  路  3Comments

rockyweng picture rockyweng  路  3Comments

dematerializer picture dematerializer  路  3Comments