IMS Final Release

A REST API for LISMembershipContainer Resources
in the application/vnd.ims.lis.v2.membershipcontainer+json Format

Final Release
Date Issued: 24 May 2016
Latest version: http://www.imsglobal.org/lti

Abstract

This specification defines a REST API for reading LISMembershipContainer resources.

Table of Contents

1. Introduction

This specification defines a REST API for reading LISMembershipContainer resources via an HTTP GET request.

2. LISMembershipContainer Representations

LISMembershipContainer resources manipulated via this REST API are represented as JSON documents in the application/vnd.ims.lis.v2.membershipcontainer+json format. For detailed information about this media type, see [LISMembershipContainer-media-type].

3. Service Methods

3.1 GET

To get a representation of a particular LISMembershipContainer instance, the client submits an HTTP GET request to the resource's REST endpoint, in accordance with the following rules:

 

ParameterDescription
limitSpecifies the maximum number of items that should be delivered per page. This parameter is merely a hint. The server is not obligated to honor this limit and may at its own discretion choose a different value for the number of items per page.
roleThe role for a membership. The result set will be filtered so that it includes only those memberships that contain this role. The value of the parameter should be the full URI for the role, although the simple name may be used for context-level roles. If omitted, the result set will include all memberships with any role.
rlidThe ID of a resource link within the context and associated and the Tool Provider. The result set will be filtered so that it includes only those memberships that are permitted to access the resource link. If omitted, the result set will include all memberships for the context.
Table 1.  Query Parameters

 

Request Header NameValue
AuthorizationAuthorization parameters dictated by the OAuth Body Hash Protocol
Acceptapplication/vnd.ims.lis.v2.membershipcontainer+json
Table 2.  Required HTTP Headers for GET Request

 

Table 3 describes the possible responses from the GET method.

HTTP Status Description
200 OK The request was successful.

The response contains a JSON document in the format defined by the application/vnd.ims.lis.v2.membershipcontainer+json media type.

301 Moved Permanently The URI for the requested resource has changed.

In this case, the response body is empty, and the new URI is provided in the Location header. The client should GET the resource from the new location, and furthermore, it should send all future requests to the new location as well.

307 Temporary Redirect The requested resource resides temporarily under a different URI.

In this case, the response body is empty, and the temporary URI is defined by the Location header field. The client should GET the resource at the temporary URI, but future requests should continue to be sent to the original URI.

401 Unauthorized The client did not authenticate properly.
404 Not Found The server has not found anything matching the request URI.
500 Internal Service Error The server encountered an unexpected condition which prevented it from fulfilling the request.
Table 3.  Possible responses from a GET method

4. References

[LISMembershipContainer-media-type]
Stephen Vickers. LISMembershipContainer JSON Binding in the application/vnd.ims.lis.v2.membershipcontainer+json format. IMS Final Release. 24 May 2016.

About this Document

Title: A REST API for LISMembershipContainer Resources in the application/vnd.ims.lis.v2.membershipcontainer+json Format
Editor:Stephen Vickers (IMS Global)
Version: 2.0
Version Date: 24 May 2016
Release: Final Release
Status: IMS Final Release
Purpose: This document is made available for review and comment by the public community at large.

List of Contributors

The following list of individuals contributed to the authoring of this document:

Vikas GuptaPearsonPadraig O'hiceadhaHoughton Mifflin Harcourt
Viktor HaagD2LCharles SeveranceUniversity of Michigan
Brad HumphreyInstructureJohn TibbettsVitalsource
Greg McFallPearsonClaude VervoortCengage
Bracken MosbackerInstructureStephen VickersIMS Global Learning Consortium