public function relatedPost(ApiRequest $request, $resourceModel)
    {
        $requestModel = $request->asRequestModel();

        $this->validate($requestModel, $this->getCreatingRules());

        $relation = $this->getRelation($resourceModel);

        return $this->createRelationshipModel($relation, $requestModel);
    }