FelipheGomezDev / api-rest-php

Api Rest en PHp de archivo unico.
0 stars 0 forks source link

Error code: 1000 #2

Open Ldiaz06 opened 3 years ago

Ldiaz06 commented 3 years ago

I get the code: {"code":1000,"message":"Route '\/' not found"}

in all the routes. I use the V1 and work fine but with the v2 no work,

I change the settings:

'driver' => 'mysql', 'address' => 'localhost', 'database' => '--------', 'username' => '------', 'password' => '---------', 'controllers' => 'records,columns,openapi', //records,columns,cache,openapi 'middlewares' => 'cors', //cors,jwtAuth,basicAuth,authorization,validation,sanitation,multiTenancy,customization // 'jwtAuth.mode' => 'optional', //'jwtAuth.time' => '1538207605', //'jwtAuth.secret' => 'axpIrCGNGqxzx2R9dtXLIPUSqPo778uhb8CA0F4Hx', //'basicAuth.mode' => 'optional', //'basicAuth.passwordFile' => DIR . DIRECTORY_SEPARATOR . '.htpasswd', 'debug' => true, 'openApiBase' => '{"info":{"title":"FormaT API Rest","version":"2.0.0"}}',

i have another thing that i have to configure??

Feliphegomez commented 3 years ago

Hello! @Ldiaz06

They haven't written me for a long time and I like that they do, I have created something special for you.

Note: I read and understand basic English, sorry for my mistakes and I appreciate your corrections.

Configuration and used EN Configuración y uso ES

IMPORTANT: Remember that if you cannot or want to donate, help me by sharing this knowledge with your friends and acquaintances so that the code can benefit more people.

Read V1

GET api.php/my-table

Read V2

GET api.php/records/my-table

no use transform in params

If you can access the openapi path you can help yourself with:

OpenAPI specification

On the "/openapi" end-point the OpenAPI 3.0 (formerly called "Swagger") specification is served. It is a machine readable instant documentation of your API. To learn more, check out these links:

Ldiaz06 commented 3 years ago

Eres un grande. donde te puedo donar?

Feliphegomez commented 3 years ago

Gracias @Ldiaz06 !

NEQUI (Colombia): 3005473085 USDC: 0x146e0ED788883E9C60e48BB004687fbE4979fC81 DOGE: D8C6KoQYSHr7KZLimjVnwJvukhpMVfMo6h BAT: 0xbC04B3D2Dd67Ebe2f7cD19E4B1BE2Ae9A91daecb ETH: 0x0f1f836D06260545068e289D23c0aE08203748E1 BTC: 359S4JAtJNmuTiwWVdcr1zvy8W6Nkxt8ay

EXTRA

Estoy montando un nuevo proyecto PACMEC - pacmec.co para que lo visites y veas los resultados que se pueden obtener