xAPI
Learning Locker’s HTTP interface conforms to the xAPI specification. The xAPI defines how to record learning experiences for analysis and serves as a guide to maximise interoperability between services that provide learning experiences.
The table below describes the routes that the HTTP interface provides, all of the URLs are relative to http://www.example.org/data/xAPI where http://www.example.org is the URL of your Learning Locker instance.
To access this interface, you must additionally supply your Basic Auth details with each request in the Authorization
header. Your Basic Auth details can be found under Settings > Clients. Alternatively you can use OAuth by creating a bearer token, however, when using the xAPI via a server Basic auth should be sufficient and when using the xAPI via a client we recommend using the ADL launch algorithm with an xAPI launch server.
Route | Description |
---|---|
Retrieves information about the LRS. | |
Stores a single statement. | |
Stores a single statement or multiple statements. | |
Retrieves statements. | |
Creates or overwrites a state document. | |
Creates or merges a state document. | |
Retrieves a single state document or multiple state identifiers. | |
Deletes a single state document or multiple state documents. | |
Retrieves a fully described activity. | |
Creates or overwrites a profile document. | |
Creates or merges a profile document. | |
Retrieves a single profile document or multiple profile identifiers. | |
Deletes a single profile document. | |
Retrieves all of the agents used by a person. | |
Creates or overwrites a profile document. | |
Creates or merges a profile document. | |
Retrieves a single profile document or multiple profile identifiers. | |
Deletes a single profile document. |
GET /ABOUT
This route returns a JSON encoded object containing information about the LRS. A request to this route would look something like the request below.
GET http://www.example.org/data/xAPI/about
Authorization: YOUR_BASIC_AUTH
A request like the one above, will respond with a 200 response with a response body like the JSON below, which contains an array of the xAPI versions supported by your Learning Locker instance.
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
X-Experience-API-Version: 1.0.3
{ "version": ["1.0.1"] }
For more information, view the GET /about route in the xAPI specification.
Learning Locker and the Squirrel logo are trademark of Learning Pool 2020 | Learning Locker is licensed under GPL 3.0.