dingo / api

A RESTful API package for the Laravel and Lumen frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Narendra93 opened this issue · comments

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.

commented

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.

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.

commented

usually you would prefix /v2/path

Maybe worthwhile checking docs