Exemple #1
0
 /**
  * Class constructor.
  *
  * @param ltiservice_toolproxy\local\resource\toolproxy $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'ToolProxy.collection';
     $this->template = '/toolproxy';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolproxy+json';
     $this->methods[] = 'POST';
 }
 /**
  * Class constructor.
  *
  * @param ltiservice_memberships\local\service\memberships $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'ToolProxyBindingMemberships';
     $this->template = '/{context_type}/{context_id}/bindings/{vendor_code}/{product_code}/{tool_code}/memberships';
     $this->variables[] = 'ToolProxyBinding.memberships.url';
     $this->formats[] = 'application/vnd.ims.lis.v2.membershipcontainer+json';
     $this->methods[] = 'GET';
 }
Exemple #3
0
 /**
  * Class constructor.
  *
  * @param ltiservice_profile\local\resource\profile $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'ToolConsumerProfile';
     $this->template = '/profile/{tool_proxy_id}';
     $this->variables[] = 'ToolConsumerProfile.url';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolconsumerprofile+json';
     $this->methods[] = 'GET';
 }
Exemple #4
0
 /**
  * Class constructor.
  *
  * @param ltiservice_memberships\local\service\memberships $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'LtiLinkMemberships';
     $this->template = '/links/{link_id}/memberships';
     $this->variables[] = 'LtiLink.memberships.url';
     $this->formats[] = 'application/vnd.ims.lis.v2.membershipcontainer+json';
     $this->methods[] = 'GET';
 }
Exemple #5
0
 /**
  * Class constructor.
  *
  * @param ltiservice_toolsettings\local\resource\contextsettings $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'ToolProxyBindingSettings';
     $this->template = '/{context_type}/{context_id}/bindings/{vendor_code}/{product_code}/custom';
     $this->variables[] = 'ToolProxyBinding.custom.url';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolsettings+json';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolsettings.simple+json';
     $this->methods[] = 'GET';
     $this->methods[] = 'PUT';
 }
Exemple #6
0
 /**
  * Class constructor.
  *
  * @param ltiservice_toolsettings\local\resource\linksettings $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'LtiLinkSettings';
     $this->template = '/links/{link_id}/custom';
     $this->variables[] = 'LtiLink.custom.url';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolsettings+json';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolsettings.simple+json';
     $this->methods[] = 'GET';
     $this->methods[] = 'PUT';
 }
 /**
  * Class constructor.
  *
  * @param ltiservice_toolsettings\local\service\toolsettings $service Service instance
  */
 public function __construct($service)
 {
     parent::__construct($service);
     $this->id = 'ToolProxySettings';
     $this->template = '/toolproxy/{tool_proxy_id}/custom';
     $this->variables[] = 'ToolProxy.custom.url';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolsettings+json';
     $this->formats[] = 'application/vnd.ims.lti.v2.toolsettings.simple+json';
     $this->methods[] = 'GET';
     $this->methods[] = 'PUT';
 }