Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST urls give a 404 error #113

Closed
kamilakis opened this issue May 3, 2020 · 2 comments
Closed

POST urls give a 404 error #113

kamilakis opened this issue May 3, 2020 · 2 comments

Comments

@kamilakis
Copy link

Hi, thanks for this!

The api urls produced (as shown on curl localhost:34054) are all GET, no POST's, no PUT, DELETE, etc.

node -v: 10.15.2
( xmysql requires node >= 7.6.0 )

npm -v: 5.8.0
mysql --version: mysql Ver 15.1 Distrib 10.3.22-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
xmysql --version:undefined


Provide steps to reproduce this issue
$ curl --request POST --data '{"username":"xyz","password":"xyz"}' https://www.example.com/shop/customers

$ tail -f mysql_rest_api.log

      Database              :    shop
      Number of Tables      :    8
                                                        
      REST APIs Generated   :    108
                                                        
      Xmysql took           :    0.1 seconds
      API's base URL        :    localhost:34054

POST /api/customers 404 153 - 3.015 ms


Mark issue with suitable label if it is clear what this issue is.

@o1lab
Copy link
Member

o1lab commented May 10, 2020

See your cli usage. May be you have enabled only get apis

@kamilakis
Copy link
Author

that was it .. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants