Skip to content
On this page

LTI v1.1

Implementation: https://gitlab.com/codecollab-io/cc-lti/-/blob/main/entity/project.go#L137

Refer to code for latest implementation.

MongoDB Collections

Under the projects collection

go
type Project {
	LTI				LTI 			`bson:"lti"`
	CompilerOptions CompilerOptions `bson:"compilerOptions"`
}
go
type LTI struct {
	Learners   []Learner `bson:"learners"`
	ActivityID string    `bson:"activity_id"`
	PublishNotificationURL string `bson:"publishNotificationURL"`
	OAuthConsumerKey stringn `bson:"oauthConsumerKey"`
}

type Learner struct {
	ID   string `bson:"id"` // User ID provided by OL
	Name string `bson:"name"`
}

type CompilerOptions struct {
	Command string `json:"cmd"`
}

type Editor struct {
	CanEditCompilerOptions bool `bson:"canEditCompilerOptions"`
}