Changes between Version 18 and Version 19 of api_v1


Ignore:
Timestamp:
2012-10-03T18:29:52Z (12 years ago)
Author:
michael
Comment:

grades api

Legend:

Unmodified
Added
Removed
Modified
  • api_v1

    v18 v19  
    108108|| ||parameter||COURSE_ID||
    109109|| ||input||none||
    110 || ||status (success)||HTTP/1.0 200 OK||
     110|| ||status (success)||HTTP/1.1 200 OK||
    111111|| ||output (success)||[{"id":"GROUP_IDO","group_num":"GROUP_NUM0","group_name":"GROUP_NAME0","course_id":"COURSE_ID"},{"id":"GROUP_ID1","group_num":"GROUP_NUM1","group_name":"GROUP_NAME1","course_id":"COURSE_ID"}]||
    112 || ||status (failure)||HTTP/1.0 404 Not Found||
     112|| ||status (failure)||HTTP/1.1 404 Not Found||
    113113|| ||output (failure)||none||
    114114||GET||/v1/courses/{course_id}/groups/id||get a group in course by group id, course_id will be ignored||
    115115|| ||parameter||COURSE_ID||
    116116|| ||parameter||GROUP_ID||
    117 || ||status (success)||HTTP/1.0 200 OK||
     117|| ||status (success)||HTTP/1.1 200 OK||
    118118|| ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}||
    119 || ||status (failure)||HTTP/1.0 404 Not Found||
     119|| ||status (failure)||HTTP/1.1 404 Not Found||
    120120|| ||output (failure)||none||
    121121||POST||/v1/courses/{course_id}/groups||create a group in course {course_id}||
    122122|| ||parameter||COURSE_ID||
    123123|| ||input||{"group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}||
    124 || ||status (success)||HTTP/1.0 201 Created||
     124|| ||status (success)||HTTP/1.1 201 Created||
    125125|| ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}||
    126 || ||status (failure)||HTTP/1.0 500 Internal Server Error||
     126|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    127127|| ||output (failure)||none||
    128128||DELETE||/v1/courses/{course_id}/groups/{id}||remove a group  in course by group id, course_id will be ignored||
    129129|| ||parameter||COURSE_ID||
    130130|| ||parameter||GROUP_ID||
    131 || ||status (success)||HTTP/1.0 204 No Content||
     131|| ||status (success)||HTTP/1.1 204 No Content||
    132132|| ||output (success)||none||
    133 || ||status (failure)||HTTP/1.0 500 Internal Server Error||
     133|| ||status (failure)||HTTP/1.1 500 Internal Server Error||
    134134|| ||output (failure)||none||
    135135||PUT||/v1/courses/{course_id}/groups/{id}||update a group in course by group id, course_id will be ignored||
     
    137137|| ||parameter||GROUP_ID||
    138138|| ||input||{"id":"GROUP_ID","course_id":"COURSE_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME"}||
    139 || ||status (success)||HTTP/1.0 200 OK||
     139|| ||status (success)||HTTP/1.1 200 OK||
    140140|| ||output (success)||{"id":"GROUP_ID","group_num":"GROUP_NUM","group_name":"GROUP_NAME","course_id":"COURSE_ID"}||
    141 || ||status (failure)||HTTP/1.0 200 OK||
     141|| ||status (failure)||HTTP/1.1 200 OK||
    142142|| ||output (failure)||none||
    143143
     
    157157
    158158||GET||/v1/events/{event_id}/grades||get a list of grades in event {event_id}||
     159|| ||parameter||EVENT_ID||
     160|| ||status (success)||HTTP/1.1 200 OK||
     161|| ||output (success)||[{"evaluatee":"EVALUATEE_ID","score":"SCORE"},{"evaluatee":"EVALUATEE_ID","score":"SCORE"}]||
     162|| ||status (failure)||HTTP/1.1 404 Not Found||
     163|| ||output (failure)||none||
    159164||GET||/v1/events/{event_id}/grades/{user_id}||get a grades for a user with {user_id} in the event {event_id}||
     165|| ||parameter||EVENT_ID||
     166|| ||parameter||USER_ID||
     167|| ||status (success)||HTTP/1.1 200 OK||
     168|| ||output (success)||{"evaluatee":"USER_ID","score":"SCORE"}
     169|| ||status (failure)||HTTP/1.1 404 Not Found||
     170|| ||output (failure)||none||
    160171
    161172* Grades are read-only