protected function post()
    {
        $parameters = $this->getParameters();
        try {
            return $this->getCrudService()->createFromArray($parameters);
        }
        /** @noinspection PhpRedundantCatchClauseInspection */
        catch (common_exception_PreConditionFailure $e) {
            throw new common_exception_RestApi($e->getMessage());
        }
    }
protected function post()
    {
        $parameters = $this->getParameters();
        try {
            return $this->getCrudService()->createFromArray($parameters);
        }
        /** @noinspection PhpRedundantCatchClauseInspection */
        catch (common_exception_PreConditionFailure $e) {
            throw new common_exception_RestApi($e->getMessage());
        }
    }
protected function post ( ) { $ parameters = $ this -> getParameters ( ) ; try { return $ this -> getCrudService ( ) -> createFromArray ( $ parameters ) ; } /** @noinspection PhpRedundantCatchClauseInspection */ catch ( common_exception_PreConditionFailure $ e ) { throw new common_exception_RestApi ( $ e -> getMessage ( ) ) ; } }
Method to wrap creating to service

@OA\Schema(
schema="tao.CommonRestModule.CreatedResource",
description="Created resource data",
@OA\Property(
property="uriResource",
type="string",
example="http://sample/first.rdf#i1536680377163171"
),
@OA\Property(
property="label",
type="string"
),
@OA\Property(
property="comment",
type="string"
)
)
@OA\Schema(
schema="tao.CommonRestModule.CreatedResourceResponse",
description="Created resource data",
allOf={
@OA\Schema(ref="#/components/schemas/tao.RestTrait.BaseResponse")
},
@OA\Property(
property="data",
ref="#/components/schemas/tao.CommonRestModule.CreatedResource"
)
)

@return mixed
@throws common_Exception
@throws common_exception_RestApi
Method to wrap creating to service