mevdschee / php-crud-api

Single file PHP script that adds a REST API to a SQL database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Route '' not found"

ykhaled opened this issue · comments

I had api.php first version working fine for many years now. I decided to give version 2 ago. I placed the new api.php in new folder and I configured the database connection with the same settings from version 1 but I can not get v2 to work. I keep getting the error message "Route '' not found". I tested exactly the same request.

Request: https://someSite.com/api.php/TableName?transform=1&filter=FieldName,eq,20027747

There are no logs - so I'm not sure what I did incorrectly.

I'm running:
mysql Ver 14.14
PHP 7.2.24-0ubuntu0.18.04.17 (cli) (built: Feb 23 2023 13:29:25) ( NTS )

Any advice is appreciated.

You should add '/records/' between api.php and TableName.

That worked! thanks!. BTW, is there an ORM mapping based on C#?

No there is not