Search code examples
restsilexrestful-architecture

auto discover restful api with Silex


is it possible to make Silex expose the API structure automatically? What I mean is that I'd like to have a full list of the API endpoints, generated automatically by Silex, on the base of the routes I have defined in the code. If this is not possible, which other frameorks allow to achieve this? Thank you


Solution

  • You could use https://github.com/jdesrosiers/silex-swagger-provider – which is a Silex provider for https://github.com/zircote/swagger-php.

    Alternatively, for Symfony, there’s the NelmioApiDocBundle, which might also be usable in a Silex project.