Development talk:Creating a web service and a web service function: Difference between revisions
(New page: I'm trying to say something constructive... but this is unbelievably complicated. What we really need are a progression from REALLY trivial examples (say, pass 1 single parameter and just ...) |
No edit summary |
||
Line 1: | Line 1: | ||
I'm trying to say something constructive... but this is unbelievably complicated. What we really need are a progression from REALLY trivial examples (say, pass 1 single parameter and just return it again) and build up to more complicated and general examples. The discussion here concentrates on a service that is probably WAY more complicated that anyone will ever need and is just going to frighten potential users away. --[[User:Howard Miller|Howard Miller]] 14:39, 21 July 2010 (UTC) | I'm trying to say something constructive... but this is unbelievably complicated. What we really need are a progression from REALLY trivial examples (say, pass 1 single parameter and just return it again) and build up to more complicated and general examples. The discussion here concentrates on a service that is probably WAY more complicated that anyone will ever need and is just going to frighten potential users away. --[[User:Howard Miller|Howard Miller]] 14:39, 21 July 2010 (UTC) | ||
Seemed to have missed a vital bit.. how to set up the class. Looking at other bits of code I assume: | |||
<code> | |||
require_once("$CFG->libdir/externallib.php"); | |||
class moodle_group_external extends external_api { | |||
</code>--[[User:Howard Miller|Howard Miller]] 15:16, 21 July 2010 (UTC) |
Latest revision as of 15:16, 21 July 2010
I'm trying to say something constructive... but this is unbelievably complicated. What we really need are a progression from REALLY trivial examples (say, pass 1 single parameter and just return it again) and build up to more complicated and general examples. The discussion here concentrates on a service that is probably WAY more complicated that anyone will ever need and is just going to frighten potential users away. --Howard Miller 14:39, 21 July 2010 (UTC)
Seemed to have missed a vital bit.. how to set up the class. Looking at other bits of code I assume:
require_once("$CFG->libdir/externallib.php");
class moodle_group_external extends external_api {
--Howard Miller 15:16, 21 July 2010 (UTC)