Forum Discussion

alanjdoolan's avatar
7 years ago

How do I get my api in swagger onto my own server running mysql?

Hi, I'm new to API building so this is likely a very obvious question but I'm putting together a structure in swagger but how can I actually translate that to an API on my php server running mysql?

1 Reply

  • Hi,

     

    This forum is for questions related to the product Swaggerhub, going forward for general Swagger questions please use the Swagger open source community (http://swagger.io/forum/) or the IRC channel (http://swagger.io/irc/).

     

    For PHP you can use the Swagger codegen to generate server side code for PHP from an existing Swagger spec.  If you are using Swaggerhub you can find this in Server -> php-silex, if you are not then use the Swagger codegen standalone.  

     

    https://github.com/swagger-api/swagger-codegen

     

    Regards,

    Marcus

    SmartBear Support