oatpp / oatpp-starter

Oatpp simple-API starter project
https://oatpp.io/
Apache License 2.0
72 stars 35 forks source link

Current url has no mapping #1

Closed ghost closed 5 years ago

ghost commented 5 years ago

Current url has no mapping? How to fix it?

lganzzzo commented 5 years ago

Hello @836438020 ,

can you please provide more details:

Thank you, Leonid

lganzzzo commented 5 years ago

@836438020 If you are using starter-project as-is, then by going to http://localhost:8000/ in the browser you should get :

{"statusCode": 200, "message": "Hello World!"}
ghost commented 5 years ago

I know this project cannot support window!!! So I git clone a example demo as "get start", root path cannot access, tips:'404 not found!', but other path as '/demo/api/users' allow access! response as '[]'

ghost commented 5 years ago

I use the post method has a question! Missing valid body parameter 'userDto', Param list: id:1, first-name:'xxx', last-name:'xxxx'

could you help me or write an example argument?

ghost commented 5 years ago

I cannot find the database config file! As database host,user,pwd,table etc... It can support mysql database?

lganzzzo commented 5 years ago

Ok, I see.

So you are using CRUD project from examples.

For each URL you are trying to access you should define an ENDPOINT with corresponding path and method.

CRUD example project has no root mapping "/" so you have to define this endpoint by yourself.

Please note that you have created issue in the non-relevant repository.

This issue will be closed. Please create issue for the relevant repository.