Cover image for Creating a PHP-Slim server using OpenAPI

Creating a PHP-Slim server using OpenAPI

kalaspuffar profile image Daniel Persson ・1 min read

We use the OpenAPI generator to create a stub server implementation of PHP-Slim. Then we implement the different endpoints using an SQLite backend and talk about the challenges using the database and handle CORS.


Editor guide

Hello, could you give me some hints for using OpenApi-generator for php-slim4: I don't understand how to use the Model: I get classes with only private members.


Well, those private members are still called when you use the model right?

If you have your code open I can take a look otherwise it's hard to help.

Hope this helps.

Best regards