MIDDAG for Moodle

company_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

detail()  : Response

Methods

detail()

public detail([int $id = 0 ]) : Response
Parameters
$id : int = 0
Attributes
#[Route]
$path: '/company/{id}/detail'
$name: 'api_company_detail'
$methods: ['GET']
Return values
Response

        
On this page

Search results