AnsweredAssumed Answered

request REST API return JSON in same format as query

Question asked by goh.ian on Feb 25, 2019

Some REST API calls let you pass courseid and userid in various formats:


GET /learn/api/public/v1/courses/{courseId}/gradebook/columns/{columnId}/users/{userId}


so we can use

primary _123_1





however, the result doesn't keep the format sent, rather it'll return the userId in primary key,

"userId": "_123_1"


Which then would mean either we stored some external mapping of primary  key = externalID or userName for lookup

or make another call to the Users API to get that info


Would it be a desirable enhancement/improvement to return JSON in the same format we requested them?