Sha256: 4b4eb461ab32a8d3dec35da15a3b5c4b85f3d3eef05ebf971c16ad869209e1d5

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

--- 
recorded_with: VCR 2.9.3
http_interactions: 
- request: 
    method: post
    uri: http://localhost:8888/moodle28/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=enrol_manual_enrol_users&wstoken=60fc9c9415259404795094957e4ab32f
    body: 
      string: enrolments[0][userid]=9999&enrolments[0][courseid]=9999&enrolments[0][roleid]=5
    headers: {}

  response: 
    status: 
      code: 200
      message: OK
    headers: 
      Cache-Control: 
      - private, must-revalidate, pre-check=0, post-check=0, max-age=0
      Content-Type: 
      - application/json
      Accept-Ranges: 
      - none
      Content-Length: 
      - "119"
      Date: 
      - Sat, 11 Apr 2015 12:50:42 GMT
      Expires: 
      - Thu, 01 Jan 1970 00:00:00 GMT
      Access-Control-Allow-Origin: 
      - "*"
      Server: 
      - Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8zd DAV/2 mod_perl/2.0.8 Perl/v5.20.0
      Pragma: 
      - no-cache
      X-Powered-By: 
      - PHP/5.6.2
    body: 
      string: "{\"exception\":\"invalid_parameter_exception\",\"errorcode\":\"invalidparameter\",\"message\":\"Invalid parameter value detected\"}"
    http_version: 
  recorded_at: Sat, 11 Apr 2015 12:50:42 GMT

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
moodle_rb-1.0.5 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml
moodle_rb-1.0.4 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml
moodle_rb-1.0.3 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml
moodle_rb-1.0.2 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml
moodle_rb-1.0.1 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml
moodle_rb-1.0.0 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml
moodle_rb-0.0.5 spec/cassettes/MoodleRb_Enrolments/_create/when_user_or_course_id_is_invalid/.yml