Changes between Version 22 and Version 23 of api_v1


Ignore:
Timestamp:
2012-10-10T17:08:21Z (12 years ago)
Author:
michael
Comment:

events api - retrieving events a user (eg. student) has access to

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v22 v23  
    175175
    176176||GET||/v1/courses/{course_id}/events||get a list of events in course {course_id}||
    177 || ||parameter|COURSE_ID||
     177|| ||parameter||COURSE_ID||
    178178|| ||status (success)||HTTP/1.1 200 OK||
    179179|| ||output (success)||[{"title":"TITLE0","course_id":"COURSE_ID","event_template_type_id":"TEMPLATE_ID","id":"EVENT_ID0"},{"title":"TITLE1","course_id":"COURSE_ID","event_template_type_id":"TEMPLATE_ID","id":"EVENT_ID1"}]
     
    188188|| ||output (failure)||none||
    189189||GET||/v1/courses/{course_id}/users/{username}/events||get events for a user in a course||
     190|| ||parameter||COURSE_ID||
     191|| ||parameter||USERNAME||
     192|| ||status (success)||HTTP/1.1 200 OK||
     193|| ||output (success)||[{"title":"TITLE0","course_id":"COURSE_ID","event_template_type_id":"TEMPLATE_ID","id":"EVENT_ID0"},{"title":"TITLE1","course_id":"COURSE_ID","event_template_type_id":"TEMPLATE_ID","id":"EVENT_ID1"}]||
     194|| ||status (failure)||HTTP/1.1 404 Not Found||
     195|| ||output (failure)||none||
    190196||GET||/v1/users/{username}/events||get events for a user||
    191 
     197|| ||parameter||USERNAME||
     198|| ||status (success)||HTTP/1.1 200 OK||
     199|| ||output (success)||[{"title":"TITLE0","course_id":"COURSE_ID","event_template_type_id":"TEMPLATE_ID","id":"EVENT_ID0"},{"title":"TITLE1","course_id":"COURSE_ID","event_template_type_id":"TEMPLATE_ID","id":"EVENT_ID1"}]||
     200|| ||status (failure)||HTTP/1.1 404 Not Found||
     201|| ||output (failure)||none||
    192202
    193203* Events are read-only