Open Issues Need Help
View All on GitHubSingle file PHP script that adds a REST API to a SQL database
AI Summary: Debug a PHP REST API (PHP-CRUD-API) issue where the OpenAPI specification (/openapi endpoint) is incomplete when read-only access is enabled. The issue seems to be related to the authorization middleware and how it interacts with the OpenAPI document generation, potentially failing to process all tables or operations when read-only mode is active. The task involves analyzing the code, identifying the point of failure in the authorization logic or OpenAPI generation, and implementing a fix to ensure that the /openapi endpoint correctly reflects all accessible paths and operations, regardless of the access level.
Single file PHP script that adds a REST API to a SQL database