dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

front-end when i call api then getting 405 Method Not Allowed #1780

Closed Narendra93 closed 3 years ago

Narendra93 commented 3 years ago

I have pass in header.

URL: {{Base_URL}}/store-update
Method: POST
Accept: version10,
Content-Type: application/json

But not working.By default call version1.Can you please help me for that issue. I have also create cors middlware but request header not setting.Also this api working fine in android,ios device but front-end not working.

specialtactics commented 3 years ago

If you are getting method not allowed, it means you there is no route with the requested method at the requested url path (endpoint).

Sorry but overall your question seems to have nothing to do with dingo - dingo has nothing to do with android, ios vs frontend, etc.

Narendra93 commented 3 years ago

Hi @specialtactics End point is there in v2 and default calling v1.So i have pass also header but not getting that request in backend always checked with v1 not in v2.

specialtactics commented 3 years ago

usually you would prefix /v2/path

Maybe worthwhile checking docs