Open ProgTiger opened 3 months ago
Please find my merge request as an idea to solve the problem: #551 In my tests it solves the problem:
-------------------------------------------------------------------------------
| SwaggerBake is checking your models...
-------------------------------------------------------------------------------
- Link
+-----------+-----------+--------------+---------+-------------+-----------------+--------+
| Attribute | Data Type | Swagger Type | Default | Primary Key | Mass Assignment | Hidden |
+-----------+-----------+--------------+---------+-------------+-----------------+--------+
| id | uuid | string | | Y | | |
| user_id | uuid | string | | | | |
| url | string | string | | | Y | |
| created | datetime | string | | | Y | |
+-----------+-----------+--------------+---------+-------------+-----------------+--------+
I'll take a look. I haven't had a need for something like this as I do one db per project, even if it has many plugins. One thing to note as adding test coverage for code changes.
Thank you for the information and your time. I'm look forward to hear more about this topic.
Did you read this: https://github.com/cnizzardini/cakephp-swagger-bake?tab=readme-ov-file#multiple-instances-of-swagger-bake
It doesn't solve your exact need, but I think the remainder could be solved by adding a database
to the config. This would assume each API has its own API.
read it, loved it, implemented it :-) This is what I did. Created a plugin for each "independent logical cluster of my api" and create an own instance of swagger (with an own swagger-controller) for it. I know that this creates an own API for each plugin/"independent logical cluster of my api". In addition I created a DB-config in app_local.php and use a DB per plugin.
Describe the bug Im building a modular API with Cakephp and want to document it with cakephp-swagger-bake. The modules will be created as plugins. Each module has its own database (configured in app_local.php - here: pluginBookmarks).
To Reproduce
Expected behavior
Attachments as above.
Version and Platform (please complete the following information):
Additional context All functions can be called in swagger ui; it seams there is "just" the missing schema.