Пример #1
0
<?php

$learningneedsassessmentPrefix = MMOperators::feature('LearningNeedsAssessment', 'LMTPrefix');

return array(
    'name' => 'Learning needs assessment',
    'apiVersion' => 0.1,
    'baseUrl' => MMOperators::feature('LearningNeedsAssessment', 'LMTBaseUrl'),
    'description' => 'Learning needs assessment Webservice',
    'operations' => array(
        'abstract' => array(
            'httpMethod' => 'POST'
        ),
        'GetUserAllCourses' => array(
            'extends' => 'abstract',
            'uri' => $learningneedsassessmentPrefix . '/GetUserAllLearningTrackerCourses',
            'summary' => 'Returns all learning courses for a given user',
            'parameters' => array(
                'AuthenticationKey' => array(
                    'type'  => 'string',
                    'required' => 'true',
                    'location' => 'postField'
                ),
                'UserID' => array(
                    'type'  => 'string',
                    'required' => 'true',
                    'location' => 'postField'
                ),
                'CountryCode' => array(
                    'type'  => 'string',
                    'required' => 'true',
 public static function getOldestFetchDate()
 {
     return MMOperators::feature( 'LearningNeedsAssessment', 'OldestFetchDate' );
 }