Dear All,
I'm trying to use Kendo Grid and DataSource Tranposrt as following:
<kendo-datasource ref="employeesData"
:transport-read-url="'http://api.example.com/api/users'"
:transport-read-type="'GET'"
:transport-read-data-type="'json'"
:transport-read-content-type="'application/json'"
:transport-update-url="'http://api.example.com/api/users'"
:transport-update-type="'PUT'"
:transport-update-content-type="'application/json'"
:transport-update-data-type="'json'"
:transport-destroy-url="'http://api.example.com/api/users'"
:transport-destroy-type="'DELETE'"
:transport-destroy-data-type="'json'"
:transport-create-url="'http://api.example.com/api/users'"
:transport-create-type="'POST'"
:transport-create-data-type="'json'"
:transport-parameter-map="parameterMap"
:schema-model-id="'id'"
:schema-model-fields="schemaModelFields"
:batch='true'
:page-size='15'>
</kendo-datasource>
When I try to update row by Edit, I receive the following message:
PUT http://api.example.com/api/users 405 (Method Not Allowed)
{message: "", exception: "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException",…}
exception: "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException"
file: "/var/www/api.leanapy.com/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php"
line: 255
message: ""
The same for DELETE
My API works fine when I use Vue (bootstrap-vue) and Vuex.
Appreciate if you can advice the way to solve it.
Thanks