I exposed a custom entity created using ECK and enabled POST request in REST UI. If I create a new entity content in POST request using url pattern shown in REST UI ( something like entity/entity_type/bundle_name), i get an error shown below :

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException :  No route found for "POST /entity/entity_type/bundle_name": Method Not Allowed (Allow: PATCH, DELETE) in 
Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest() (line 180 of 
vendor/symfony/http-kernel/EventListener/RouterListener.php

There was no problem in creating new Articls or Basic Pages.

Comments

zuhair_ak created an issue. See original summary.

zuhair_ak’s picture

Issue summary: View changes
zuhair_ak’s picture

Category: Bug report » Support request

I just found out there is another resource api with uri '/admin/structure/eck/entity/entity_name/{entity_name}' has to be enabled. I can get data using GET request now, but still can't get the POST request to create new content, since i get a '403' error now. Anybody has any leads.

zuhair_ak’s picture

Title: "Method Not allowed" for POST request to create entity content » 403 Forbidden error for POST request to create entity content