This topic contains 3 replies, has 4 voices, and was last updated by Vova Soroka 6 years, 7 months ago.
- Topic
Hello. I created a REST action like bellow:
1234567891011121314151617181920/*** REST POST** @ApiDoc(* description="Add invoice",* resource=true,* input = "TestBundle\Form\Type\TestApiType",* statusCodes = {* 200 = "Returned when successful",* 400 = "Returned when the form has errors"* }* )* @param Request $request the request object** @return FormTypeInterface[]|View*/public function postAction(){return $this->handleCreateRequest();}When I try to open API doc page I get error:
Notice: Undefined index: isRelation
in vendor/oro/platform/src/Oro/Bundle/ApiBundle/ApiDoc/HtmlFormatter.php at line 219The funnest is that when I edit annotations for example by adding enter, the error disappears for one refresh. When I refresh page again, the problem appears again. It looks like sth generate this parameter but doesn’t add it to cache(?).
Thanks in advance.
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.