Ltix.LaunchClaims.AgsEndpoint (Ltix v0.1.0)

Copy Markdown View Source

Assignment and Grade Services (AGS) endpoint claim.

Provides URLs for managing line items and scores. All fields are optional.

Examples

iex> Ltix.LaunchClaims.AgsEndpoint.from_json(%{"lineitems" => "https://example.com/lineitems"})
{:ok, %Ltix.LaunchClaims.AgsEndpoint{scope: nil, lineitems: "https://example.com/lineitems", lineitem: nil}}

Summary

Functions

Parse an AGS endpoint claim from a JSON map.

Types

t()

@type t() :: %Ltix.LaunchClaims.AgsEndpoint{
  lineitem: binary(),
  lineitems: binary(),
  scope: [binary()]
}

Functions

from_json(json)

@spec from_json(map()) :: {:ok, t()} | {:error, Exception.t()}

Parse an AGS endpoint claim from a JSON map.

Examples

iex> Ltix.LaunchClaims.AgsEndpoint.from_json(%{})
{:ok, %Ltix.LaunchClaims.AgsEndpoint{scope: nil, lineitems: nil, lineitem: nil}}