Skip to content

Commit ecf2ca1

Browse files
committed
xAPI Versioning Doc
1 parent 0ae37ce commit ecf2ca1

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ For releases and release notes, see the [Releases](https://github.com/yetanalyti
5252
- [Reactions](doc/reactions.md)
5353
- [JSON Spec](doc/reactions/spec.md)
5454
- [Sending xAPI statement(s) with Postman](doc/postman.md)
55+
- [xAPI Versioning](doc/xapi_versioning.md)
5556

5657
### Demos
5758

doc/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
- [Example AWS Deployment](aws.md)
3333
- [Reactions](reactions.md)
3434
- [Sending xAPI statement(s) with Postman](postman.md)
35+
- [xAPI Versioning](xapi_versioning.md)
3536

3637
### Demos
3738

doc/xapi_versioning.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[<- Back to Index](index.md)
2+
3+
# xAPI Versioning
4+
5+
SQL LRS supports xAPI versions 1.0.3 and 2.0.0. The version used is determined by the `X-Experience-API-Version` header in the request. Use the LRSQL_SUPPORTED_VERSIONS environment variable or the `supportedVersions` LRS configuration property to set which versions are supported. By default, both versions are supported. For more information see [the configuration documentation](env_vars.md).
6+
7+
## Strict Versioning
8+
9+
Note that by default, responses to requests with an `X-Experience-API-Version` header set to `1.0.3` may contain statements in `2.0.0` format. To ensure that `2.0.0` statements are downgraded to `1.0.3` format use the `LRSQL_ENABLE_STRICT_VERSION` environment variable or the `enableStrictVersion` LRS configuration property. For more information see [the configuration documentation](env_vars.md).
10+
11+
## Reaction Versioning
12+
13+
Reactions generate version `1.0.3` statements by default but you can configure this by setting the `LRSQL_REACTION_VERSION` environment variable or the `reactionVersion` LRS configuration property. For more information see [the configuration documentation](env_vars.md). Note that creating reactions under `2.0.0` and then restricting the LRS to version `1.0.3` only will lead to errors in the LRS Admin UI frontend. To recover from this situation reenable `2.0.0` support and delete any incompatible reactions before returning to `1.0.3` only.
14+
15+
[<- Back to Index](index.md)

0 commit comments

Comments
 (0)