MIDDAG for Moodle

coursegroup_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

Properties

$coursegroup_service  : coursegroup_service

Methods

__construct()  : mixed
Constructor with dependency injection.
contents()  : JsonResponse

Properties

Methods

contents()

public contents([int $id = 0 ]) : JsonResponse
Parameters
$id : int = 0
Tags
throws
coding_exception
throws
dml_exception
throws
moodle_exception
throws
Exception
Attributes
#[Route]
$path: '/coursegroup/{id}/contents'
$name: 'api_coursegroup_contents'
$methods: ['GET']
Return values
JsonResponse

        
On this page

Search results