MIDDAG for Moodle

helper_api_controller extends api_controller

Public SDK API Controller.

Extend this class to expose JSON-first endpoints that leverage the framework routing and middleware without touching Moodle globals directly.

Table of Contents

Methods

check()  : JsonResponse
Handles a request to check if a user exists by their email address.

Methods

check()

Handles a request to check if a user exists by their email address.

public check() : JsonResponse

Validates the provided email address and determines if a user exists in the system.

Attributes
#[Route]
$path: '/helper/user/check'
$name: 'api_helper_user_check'
$methods: ['GET']
Return values
JsonResponse

returns a JSON response indicating success or failure, and user information if available


        
On this page

Search results