Sha256: f7c8a86e67171757f8df2450c9a399f7f3e631b91bb65a3e330308ab8b375d7a

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 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=core_course_create_categories&wstoken=60fc9c9415259404795094957e4ab32f
    body: 
      string: categories[0][description]=&categories[0][idnumber]=CAT101&categories[0][parent]=0&categories[0][name]=Test%20category
    headers: {}

  response: 
    status: 
      code: 200
      message: OK
    headers: 
      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
      Cache-Control: 
      - private, must-revalidate, pre-check=0, post-check=0, max-age=0
      Pragma: 
      - no-cache
      Date: 
      - Sun, 12 Apr 2015 00:40:13 GMT
      Content-Type: 
      - application/json
      Expires: 
      - Thu, 01 Jan 1970 00:00:00 GMT
      Access-Control-Allow-Origin: 
      - "*"
      Content-Length: 
      - "127"
      X-Powered-By: 
      - PHP/5.6.2
      Accept-Ranges: 
      - none
    body: 
      string: "{\"exception\":\"moodle_exception\",\"errorcode\":\"categoryidnumbertaken\",\"message\":\"ID number is already used for another category\"}"
    http_version: 
  recorded_at: Sun, 12 Apr 2015 00:40:13 GMT

Version data entries

7 entries across 7 versions & 1 rubygems

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