Code: Select all
GET /phpBB/api.php/(json|xml)/post/3
GET /phpBB/api.php/(json|xml)/posts
POST /phpBB/api.php/(json|xml)/forum/12
It should then be dealt with by a file called
api/topic.php
containing the following:Code: Select all
<?php
/* DocBlock */
class phpbb_topic extends phpbb_api
{
// GET /
public function list() {}
// GET /:id
public function get($id) {}
// POST /
public function new() {}
// POST /:id
public function post($id) {}
// PUT /:id
public function edit($id) {}
// DELETE /:id
public function delete($id) {}
}
There should be some information available in
$this->request
:Code: Select all
$this->request = array(
'full_url' => 'api.php/json/post/3',
'file' => 'api.php',
'path' => 'json/post/3',
'format' => 'json',
'controller' => 'post',
'data' => array('3'),
);