src/Controller/UserRESTController.php
/**
     * Controller method used for removal of resource via HTTP DELETE method
     *
     * @param string $id
     *
     * @return JsonResponse
     *
     * @throws \App\Exceptions\EntityNotFoundException
     * @Route(path="api/v1/user/{id}", methods={"DELETE"})
     */
Controller method used for removal of resource via HTTP DELETE method
@param string $id




Controller method used for removal of resource via HTTP DELETE method @param string $id
public function delete(string $id): JsonResponse
    {
        $id = $this->userService->deleteUser($id);
        return new JsonResponse(
            ApiHelper::prepareResponse(
                true,
                [
                    'id' => $id
                ]
            ),
            Response::HTTP_OK
        );
    }
public function delete ( string $ id ) : JsonResponse { $ id = $ this -> userService -> deleteUser ( $ id ) ; return new JsonResponse ( ApiHelper :: prepareResponse ( true , [ 'id' => $ id ] ) , Response :: HTTP_OK ) ; }
Controller method used for removal of resource via HTTP DELETE method
 @param string $id
Controller method used for removal of resource via HTTP DELETE method @param string $id