{ "x-generator": "NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { "title": "Alpha Zero", "version": "1.0.0" }, "servers": [ { "url": "http://localhost:5053" } ], "paths": { "/identity/users/devices": { "post": { "tags": [ "Devices", "Identity" ], "summary": "Registers a new device for the user", "description": "Registers a client device public key for secure offline playback.", "operationId": "AlphaZeroModulesIdentityPresentationUsersDevicesRegisterDeviceEndpoint", "requestBody": { "x-name": "RegisterDeviceRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterDeviceRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Device registered successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterDeviceResponse" } } } }, "400": { "description": "Validation failure (DeviceName empty/too long, PublicKey empty, Platform invalid)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Device already registered (Device.Exists)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/users/devices/main": { "post": { "tags": [ "Devices", "Identity" ], "summary": "Sets the user's primary device", "description": "Updates the user's main device for playback security.", "operationId": "AlphaZeroModulesIdentityPresentationUsersDevicesSetMainDeviceEndpoint", "requestBody": { "x-name": "SetMainDeviceRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetMainDeviceRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Main device updated successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Device not found (Device.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/resources/{resourceType}/{resourceId}/principals": { "get": { "tags": [ "Identity", "Identity" ], "summary": "Gets principals assigned to a resource", "description": "Retrieves a list of principals that have direct or indirect permissions on the resource.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsQueriesGetPrincipalsByResourceGetPrincipalsByResourceEndpoint", "parameters": [ { "name": "resourceType", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "resourceId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Principals retrieved successfully", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PrincipalDto" } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/principals/{principalId}/policies": { "get": { "tags": [ "Identity", "Identity" ], "summary": "Gets policies for a principal", "description": "Retrieves both inline and managed policies associated with the specified principal.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsQueriesGetPrincipalPoliciesGetPrincipalPoliciesEndpoint", "parameters": [ { "name": "principalId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Principal policies retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PrincipalPoliciesDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Principal not found (Principal.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/principals/{principalId}/policies/managed/{managedPolicyId}": { "delete": { "tags": [ "Identity", "Identity" ], "summary": "Detaches a managed policy from a principal", "description": "Removes a managed policy association from an IAM principal.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsCommandsDetachManagedPolicyDetachManagedPolicyEndpoint", "parameters": [ { "name": "principalId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "managedPolicyId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Managed policy detached successfully" }, "400": { "description": "Validation failure (PrincipalId or ManagedPolicyId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Principal not found (Principal.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "post": { "tags": [ "Identity", "Identity" ], "summary": "Attaches a managed policy to a principal", "description": "Assigns an existing managed policy to an IAM principal.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsCommandsAttachManagedPolicyAttachManagedPolicyEndpoint", "parameters": [ { "name": "principalId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "managedPolicyId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Managed policy attached successfully" }, "400": { "description": "Validation failure (PrincipalId or ManagedPolicyId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Principal or managed policy not found (Principal.NotFound, ManagedPolicy.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/principals/{principalId}/policies/inline/{policyId}": { "delete": { "tags": [ "Identity", "Identity" ], "summary": "Detaches an inline policy from a principal", "description": "Removes an inline policy from an IAM principal.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsCommandsDetachInlinePolicyDetachInlinePolicyEndpoint", "parameters": [ { "name": "principalId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "policyId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Inline policy detached successfully" }, "400": { "description": "Validation failure (PrincipalId or PolicyId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Principal not found (Principal.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/principals": { "post": { "tags": [ "Identity", "Identity" ], "summary": "Creates a new principal", "description": "Creates an IAM principal (User, Role, or System) within the tenant.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsCommandsCreatePrincipalCreatePrincipalEndpoint", "requestBody": { "x-name": "CreatePrincipalRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePrincipalRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Principal created successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePrincipalResponse" } } } }, "400": { "description": "Validation failure (Username empty, Password < 8 chars, Name empty/too long, PrincipalType invalid)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant not found or invalid credentials)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/principals/{principalId}/policies/inline": { "post": { "tags": [ "Identity", "Identity" ], "summary": "Attaches an inline policy to a principal", "description": "Appends a custom inline policy to an IAM principal.", "operationId": "AlphaZeroModulesIdentityPresentationPrincipalsCommandsAttachInlinePolicyAttachInlinePolicyEndpoint", "parameters": [ { "name": "principalId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "AttachInlinePolicyRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttachInlinePolicyRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Inline policy attached successfully" }, "400": { "description": "Validation failure (PrincipalId empty, PolicyName empty/too long, Statements empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant not found or invalid token)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePrincipals permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Principal not found (Principal.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/policies/managed/{policyId}": { "delete": { "tags": [ "Identity Policies", "Identity" ], "summary": "Deletes a managed policy", "description": "Permanently deletes a managed IAM policy.", "operationId": "AlphaZeroModulesIdentityPresentationPoliciesCommandsDeleteManagedPolicyDeleteManagedPolicyEndpoint", "parameters": [ { "name": "policyId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Managed policy deleted successfully" }, "400": { "description": "Validation failure (PolicyId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePolicies permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Managed policy not found (ManagedPolicy.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/policies/managed": { "post": { "tags": [ "Identity Policies", "Identity" ], "summary": "Creates a managed policy", "description": "Creates a reusable IAM policy with permission statements.", "operationId": "AlphaZeroModulesIdentityPresentationPoliciesCommandsCreateManagedPolicyCreateManagedPolicyEndpoint", "requestBody": { "x-name": "CreateManagedPolicyRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateManagedPolicyRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Managed policy created successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateManagedPolicyResponse" } } } }, "400": { "description": "Validation failure (Name empty/too long, Statements empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing identity:ManagePolicies permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/identity/auth/register-student": { "post": { "tags": [ "Identity Auth", "Identity" ], "summary": "Registers a new student", "description": "Creates a student principal associated with a tenant.", "operationId": "AlphaZeroModulesIdentityPresentationAuthCommandsRegisterStudentRegisterStudentEndpoint", "requestBody": { "x-name": "RegisterStudentRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterStudentRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Student successfully registered", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterStudentResponse" } } } }, "400": { "description": "Validation failure (TenantId empty, Username empty/too long, Password < 8 chars, Name empty/too long)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "StudentAccess policy not found (ManagedPolicy.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "User already exists", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/identity/auth/login-principal": { "post": { "tags": [ "Identity Auth", "Identity" ], "summary": "Authenticates a principal", "description": "Validates principal credentials and returns an access token.", "operationId": "AlphaZeroModulesIdentityPresentationAuthCommandsLoginPrincipalLoginPrincipalEndpoint", "requestBody": { "x-name": "LoginPrincipalRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginPrincipalRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Authentication successful", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenResponse" } } } }, "401": { "description": "Invalid credentials (Auth.NotFoundCredentials, Auth.InvalidCredentials)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/identity/auth/exchange-tenant-token": { "post": { "tags": [ "Identity Auth", "Identity" ], "summary": "Exchanges global IDP token for a tenant-scoped access token", "description": "Authenticates an IDP user against a tenant, registers or verifies their device, and returns a tenant token.", "operationId": "AlphaZeroModulesIdentityPresentationAuthCommandsLoginAsTenantUserLoginAsTenantUserEndpoint", "requestBody": { "x-name": "LoginAsTenantUserRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginAsTenantUserRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Token exchange successful", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenResponse" } } } }, "400": { "description": "Validation failure (Invalid Platform)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Missing or invalid IDP claims)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/api/video/keys/{videoId}": { "get": { "tags": [ "Video Streaming", "Api" ], "summary": "Retrieves decryption key for an encrypted video", "description": "Returns the binary 16-byte AES decryption key for HLS playback.", "operationId": "AlphaZeroModulesVideoUploadingPresentationFeaturesGetVideoKeyEndpoint", "parameters": [ { "name": "videoId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Decryption key binary stream (application/octet-stream)" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing video:Stream permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Video secret not found (VideoSecret.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "500": { "description": "Invalid key format stored (VideoSecret.InvalidFormat)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/tenants/{id}": { "put": { "tags": [ "Tenants", "Tenants" ], "summary": "Updates tenant details and branding", "description": "Updates the name, logos, favicon, and dynamic brand colors of an academy tenant.", "operationId": "AlphaZeroModulesTenantsPresentationEndpointsUpdateTenantUpdateTenantEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "UpdateTenantRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateTenantRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Tenant updated successfully" }, "400": { "description": "Validation failure (Id empty, Name empty/too long, Invalid hex colors)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing tenants:Manage permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Tenant not found (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "get": { "tags": [ "Tenants", "Tenants" ], "summary": "Gets tenant details by ID", "description": "Retrieves configuration and metadata for the specified academy tenant.", "operationId": "AlphaZeroModulesTenantsPresentationEndpointsGetTenantGetTenantEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Tenant retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TenantDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing tenants:Manage permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Tenant not found (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "delete": { "tags": [ "Tenants", "Tenants" ], "summary": "Deletes an academy tenant", "description": "Removes an academy tenant from the platform.", "operationId": "AlphaZeroModulesTenantsPresentationEndpointsDeleteTenantDeleteTenantEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Tenant deleted successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing tenants:Manage permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Tenant not found (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/tenants/lookup": { "get": { "tags": [ "Tenants", "Tenants" ], "summary": "Looks up tenant by subdomain", "description": "Publicly resolves academy branding and metadata based on the subdomain. Response is cached at the edge.", "operationId": "AlphaZeroModulesTenantsPresentationEndpointsLookupTenantLookupTenantEndpoint", "parameters": [ { "name": "subdomain", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Tenant details and dynamic branding retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LookupTenantResponse" } } } }, "404": { "description": "Tenant not found (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/tenants": { "get": { "tags": [ "Tenants", "Tenants" ], "summary": "Lists academy tenants", "description": "Retrieves a paginated list of registered academy tenants.", "operationId": "AlphaZeroModulesTenantsPresentationEndpointsListTenantsListTenantsEndpoint", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Tenants retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfTenantDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing tenants:Manage permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "post": { "tags": [ "Tenants", "Tenants" ], "summary": "Creates a new academy tenant", "description": "Provisions an isolated tenant/academy instance with its own subdomain and branding.", "operationId": "AlphaZeroModulesTenantsPresentationEndpointsCreateTenantCreateTenantEndpoint", "requestBody": { "x-name": "CreateTenantRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTenantRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Tenant created successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTenantResponse" } } } }, "400": { "description": "Validation failure (Name empty/too long, Subdomain invalid, Invalid hex colors)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing tenants:Manage permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Subdomain already taken (Tenant.SubdomainNotUnique)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/assessments/submissions/{submissionId}/submit": { "post": { "tags": [ "Assessments", "Assessments" ], "summary": "Submits responses for an assessment", "description": "Submits a student's responses, triggers automated grading, and marks for manual review if subjective questions are present.", "operationId": "AlphaZeroModulesAssessmentsPresentationEndpointsSubmissionsSubmitSubmitAssessmentEndpoint", "parameters": [ { "name": "submissionId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "SubmitAssessmentRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmitAssessmentRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Assessment submitted successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmitAssessmentResponse" } } } }, "400": { "description": "Validation failure (Submission.Empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing assessments:Submit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Submission.NotFound, Assessment.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Submission.Status - only in-progress submissions can be submitted)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/assessments/submissions": { "get": { "tags": [ "Submissions", "Assessments" ], "summary": "Lists assessment submissions", "description": "Retrieves a paginated list of submissions optionally filtered by assessment or status.", "operationId": "AlphaZeroModulesAssessmentsPresentationEndpointsSubmissionsListListSubmissionsEndpoint", "parameters": [ { "name": "assessmentId", "in": "query", "schema": { "type": "string", "format": "guid", "nullable": true } }, { "name": "status", "in": "query", "schema": { "type": "string", "nullable": true } }, { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Submissions retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfSubmissionSummaryDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing assessments:ViewSubmissions permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/assessments/{assessmentId}/content": { "put": { "tags": [ "Assessments", "Assessments" ], "summary": "Updates the content of an existing assessment", "description": "Creates a new content version snapshot for the assessment.", "operationId": "AlphaZeroModulesAssessmentsPresentationEndpointsAssessmentsUpdateContentUpdateAssessmentContentEndpoint", "parameters": [ { "name": "assessmentId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "UpdateAssessmentContentRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAssessmentContentRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Assessment content updated successfully" }, "400": { "description": "Validation failure (AssessmentId empty, Content null, or invalid questions)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing assessments:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Assessment not found (Assessment.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Assessment.Status - archived assessment cannot be modified)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/assessments": { "get": { "tags": [ "Assessments", "Assessments" ], "summary": "Lists all assessments with pagination", "description": "Returns a paged list of assessments for the current tenant.", "operationId": "AlphaZeroModulesAssessmentsPresentationEndpointsAssessmentsListListAssessmentsEndpoint", "parameters": [ { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Assessments retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfAssessmentDto" } } } } } }, "post": { "tags": [ "Assessments", "Assessments" ], "summary": "Creates a new assessment", "description": "Initializes an assessment in Draft status with metadata and optional initial content.", "operationId": "AlphaZeroModulesAssessmentsPresentationEndpointsAssessmentsCreateCreateAssessmentEndpoint", "requestBody": { "x-name": "CreateAssessmentRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAssessmentRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Assessment successfully created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAssessmentResponse" } } } }, "400": { "description": "Validation failure (Assessment.Title, Assessment.PassingScore, or invalid Type)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant.NotFound or unauthenticated)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing assessments:Create permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/assessments/{id}": { "get": { "tags": [ "Assessments", "Assessments" ], "summary": "Retrieves a specific assessment by ID", "description": "Returns full details of an assessment including its current content snapshot or a specific version.", "operationId": "AlphaZeroModulesAssessmentsPresentationEndpointsAssessmentsGetGetAssessmentEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "version", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true } } ], "responses": { "200": { "description": "Assessment details retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssessmentDetailsDto" } } } }, "404": { "description": "Assessment or version not found (Assessment.NotFound, Assessment.VersionNotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/courses/enrollements/{enrollmentId}/complete": { "post": { "tags": [ "Enrollement", "Courses" ], "summary": "Marks a course item as completed", "description": "Updates the student's progress bitmask for the specified item bit index.", "operationId": "AlphaZeroModulesIdentityPresentationEnrollementsCompleteItemCompleteItemEndpoint", "parameters": [ { "name": "enrollmentId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "CompleteItemRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CompleteItemRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Item marked as completed successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing enrollments:Complete permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Enrollment.NotFound, Course.Item)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Enrollement.Status - cannot complete items in inactive enrollment)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/subjects": { "get": { "tags": [ "Subjects", "Courses" ], "summary": "Lists all subjects with pagination", "description": "Returns a paged list of educational subjects for the current tenant.", "operationId": "AlphaZeroModulesCoursesPresentationSubjectsListListSubjectsEndpoint", "parameters": [ { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Subjects retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfSubjectDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing subjects:List permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "post": { "tags": [ "Subjects", "Courses" ], "summary": "Creates a new educational subject", "description": "Initializes a subject category (e.g., Physics, Chemistry) for the current tenant.", "operationId": "AlphaZeroModulesCoursesPresentationSubjectsCreateCreateSubjectEndpoint", "requestBody": { "x-name": "CreateSubjectRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSubjectRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Subject successfully created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSubjectResponse" } } } }, "400": { "description": "Validation failure (Name empty/too long, Subject.Validation)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing subjects:Create permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/subjects/{id}": { "get": { "tags": [ "Subjects", "Courses" ], "summary": "Retrieves a subject by ID", "description": "Returns the details of a specific subject category.", "operationId": "AlphaZeroModulesCoursesPresentationSubjectsGetGetSubjectEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Subject retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubjectDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing subjects:View permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Subject not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/enrollments/{id}": { "get": { "tags": [ "Enrollment", "Courses" ], "summary": "Retrieves enrollment details", "description": "Returns the student enrollment details including completion percentage and status.", "operationId": "AlphaZeroModulesCoursesPresentationEnrollementsGetGetEnrollementEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Enrollment retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnrollementResponse" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing enrollments:View permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Enrollment not found (Enrollment.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/enroll": { "post": { "tags": [ "Enrollment", "Courses" ], "summary": "Enrolls a student in a course", "description": "Creates a new enrollment record and initializes the progress bitmask for the student.", "operationId": "AlphaZeroModulesCoursesPresentationEnrollementsEnrollEnrollInCourseEndpoint", "requestBody": { "x-name": "EnrollInCourseRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnrollInCourseRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Student successfully enrolled", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnrollInCourseResponse" } } } }, "400": { "description": "Validation failure (Enrollement.StudentId, Enrollement.CourseId)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Enroll permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Student is already enrolled in this course (Enrollment.Exists)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/dashboard/{studentId}": { "get": { "tags": [ "Enrollment", "Courses" ], "summary": "Retrieves student's learning dashboard across all academies", "description": "Returns a list of all active course enrollments for the student, grouped by the academy (tenant) they belong to.", "operationId": "AlphaZeroModulesCoursesPresentationEnrollementsDashboardGetStudentDashboardEndpoint", "parameters": [ { "name": "studentId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Dashboard retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DashboardResponse" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing enrollments:View permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/approve": { "patch": { "tags": [ "Courses", "Courses" ], "summary": "Approves a course under review", "description": "Transitions course status from UnderReview to Approved.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesStateApproveCourseEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Course approved successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Approve permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Course.Status - only courses under review can be approved)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/publish": { "patch": { "tags": [ "Courses", "Courses" ], "summary": "Publishes an approved course", "description": "Transitions course status from Approved to Published, making it discoverable and enrollable.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesStatePublishCourseEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Course published successfully" }, "400": { "description": "Validation failure (Course.NoPlans - course must have at least one plan before publishing)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Publish permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Course.Status - only approved courses can be published)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/reject": { "patch": { "tags": [ "Courses", "Courses" ], "summary": "Rejects a course under review", "description": "Transitions course status from UnderReview back to Draft with a specified rejection reason.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesStateRejectCourseEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "RejectCourseRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RejectCourseRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Course rejected successfully" }, "400": { "description": "Validation failure (Course.RejectionReason - rejection reason is required)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Reject permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Course.Status - only courses under review can be rejected)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/review": { "patch": { "tags": [ "Courses", "Courses" ], "summary": "Submits a course for administrative review", "description": "Transitions course status from Draft to UnderReview.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesStateSubmitForReviewEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Course submitted for review successfully" }, "400": { "description": "Validation failure (Course.Empty - course must have content before review)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Submit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Course.Status - only draft courses can be reviewed)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/sections/reorder": { "post": { "tags": [ "Courses", "Courses" ], "summary": "Reorders sections within a course", "description": "Updates the sequence order of curriculum sections for a draft course.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesReorderSectionsReorderSectionsEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "ReorderSectionsRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReorderSectionsRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Sections reordered successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Conflict (Course.Status - cannot reorder sections once published)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/sections/{sectionId}/reorder": { "post": { "tags": [ "Courses", "Courses" ], "summary": "Reorders curriculum items in a section", "description": "Updates the sequence order of lessons/quizzes within a specific course section.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesReorderItemsReorderItemsEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "sectionId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "ReorderItemsRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReorderItemsRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Items reordered successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Course.NotFound, Course.Section)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/plans/{planId}": { "put": { "tags": [ "Courses", "Courses" ], "summary": "Updates an access plan for a course", "description": "Updates the plan name or associated principal for accessing the course.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesPlansUpdatePlanUpdatePlanEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "planId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "UpdatePlanRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdatePlanRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Plan updated successfully" }, "400": { "description": "Validation failure (CourseId, PlanId, Name, PrincipalId empty or Course.PlanName)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Course.NotFound, Course.Plan)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "delete": { "tags": [ "Courses", "Courses" ], "summary": "Removes an access plan from a course", "description": "Deletes an enrollment plan option from the specified course.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesPlansRemovePlanRemovePlanEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "planId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Plan removed successfully" }, "400": { "description": "Validation failure (CourseId or PlanId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Course.NotFound, Course.Plan)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/plans": { "post": { "tags": [ "Courses", "Courses" ], "summary": "Adds an access plan to a course", "description": "Creates a new plan option for accessing the course.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesPlansAddPlanAddPlanEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "AddPlanRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddPlanRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Plan added successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddPlanResponse" } } } }, "400": { "description": "Validation failure (CourseId, Name, PrincipalId empty or Course.PlanName)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses": { "get": { "tags": [ "Courses", "Courses" ], "summary": "Lists all courses with pagination", "description": "Returns a paged list of courses for the current tenant. Optionally filterable by subject.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesListListCoursesEndpoint", "parameters": [ { "name": "subjectId", "in": "query", "schema": { "type": "string", "format": "guid", "nullable": true } }, { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Courses retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfCourseSummaryDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:View permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "post": { "tags": [ "Courses", "Courses" ], "summary": "Initializes a new course", "description": "Creates a course in Draft status under a specific subject.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesCreateCreateCourseEndpoint", "requestBody": { "x-name": "CreateCourseRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCourseRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Course successfully created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCourseResponse" } } } }, "400": { "description": "Validation failure (Course.Title, SubjectId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Create permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Subject not found (Course.SubjectId)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{id}": { "get": { "tags": [ "Courses", "Courses" ], "summary": "Retrieves a course by its ID", "description": "Returns the complete structure of a course, including all sections, lessons, and assessments.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesGetGetCourseEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Course structure retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourseResponse" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:View permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/sections": { "post": { "tags": [ "Courses", "Courses" ], "summary": "Adds a curriculum section to a course", "description": "Appends a new numbered section to the specified course.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesAddSectionAddSectionEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "AddSectionRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddSectionRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Section added successfully" }, "400": { "description": "Validation failure (CourseId empty, Title empty/too long)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Course not found (Course.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/sections/{sectionId}/lessons": { "post": { "tags": [ "Courses", "Courses" ], "summary": "Adds a video lesson to a course section", "description": "Appends a lesson curriculum item linked to a video.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesAddItemAddLessonEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "sectionId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "AddLessonRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddLessonRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Lesson added successfully" }, "400": { "description": "Validation failure (CourseId, SectionId, Title, VideoId)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Course.NotFound, Course.Section)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/sections/{sectionId}/assessments": { "post": { "tags": [ "Courses", "Courses" ], "summary": "Adds an assessment to a course section", "description": "Creates an assessment item within the specified course and section.", "operationId": "AlphaZeroModulesCoursesPresentationCoursesAddItemAddAssessmentEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "sectionId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "AddAssessmentRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddAssessmentRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Assessment added successfully" }, "400": { "description": "Validation failure (CourseId, SectionId, Title empty or invalid)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (No TenantID provided or unauthenticated)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:Edit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not found (Course.NotFound, Course.Section, or Assessment.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/analytics": { "get": { "tags": [ "Analytics", "Courses" ], "summary": "Retrieves analytics for a course", "description": "Returns total enrollments, average completion rate, and per-item completion stats.", "operationId": "AlphaZeroModulesCoursesPresentationAnalyticsGetCourseAnalyticsEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Analytics retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourseAnalyticsDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:ViewAnalytics permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Analytics not found (CourseAnalytics.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/courses/{courseId}/students": { "get": { "tags": [ "Analytics", "Courses" ], "summary": "Lists student progress for a course", "description": "Returns a paginated list of enrollments and their completion percentages.", "operationId": "AlphaZeroModulesCoursesPresentationAnalyticsListStudentProgressEndpoint", "parameters": [ { "name": "courseId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Progress list retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfEnrollmentDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing courses:ViewAnalytics permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/libraries/{libraryId}/audit-logs": { "get": { "tags": [ "Library" ], "summary": "Gets redemption audit logs", "description": "Retrieves paginated redemption audit logs for a library or tenant.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsRedemptionAuditLogsGetRedemptionLogsEndpoint", "parameters": [ { "name": "libraryId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } }, { "name": "from", "in": "query", "schema": { "type": "string", "format": "date", "nullable": true } }, { "name": "to", "in": "query", "schema": { "type": "string", "format": "date", "nullable": true } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1, "nullable": false } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 50, "nullable": false } } ], "responses": { "200": { "description": "Redemption audit logs retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfRedemptionAuditLogDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/library/redeem": { "post": { "tags": [ "Library", "Library" ], "summary": "Redeems an access code", "description": "Enrolls the authenticated user into the course/resource associated with the access code.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsRedeemCodeRedeemCodeEndpoint", "requestBody": { "x-name": "RedeemCodeRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RedeemCodeRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Access code redeemed successfully" }, "401": { "description": "Unauthorized (User must be logged in)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (AccessCode.TenantMismatch or missing courses:Enroll permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Access code not found (AccessCode.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Invalid code status (AccessCode.InvalidStatus)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/libraries/{id}": { "patch": { "tags": [ "Library Management", "Library" ], "summary": "Updates partner library information", "description": "Updates the name, address, or contact number of an existing partner library.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesUpdateLibraryUpdateLibraryEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "UpdateLibraryRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateLibraryRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Library updated successfully" }, "400": { "description": "Validation failure (Id, Name, Address, ContactNumber empty or too long)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Library not found (Library.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "get": { "tags": [ "Library Management", "Library" ], "summary": "Gets a library by ID", "description": "Retrieves details of a registered partner library.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesGetLibraryGetLibraryEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "200": { "description": "Library retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LibraryDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Library not found (Library.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "delete": { "tags": [ "Library Management", "Library" ], "summary": "Deletes a partner library", "description": "Removes a partner library from the academy system.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesDeleteLibraryDeleteLibraryEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Library deleted successfully" }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Library not found (Library.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/libraries": { "get": { "tags": [ "Library Management", "Library" ], "summary": "Lists partner libraries", "description": "Retrieves a paginated list of registered partner libraries.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesListLibrariesListLibrariesEndpoint", "parameters": [ { "name": "page", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "perPage", "in": "query", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Libraries retrieved successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfLibraryDto" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "post": { "tags": [ "Library Management", "Library" ], "summary": "Creates a new physical partner library", "description": "Registers a new partner library authorized to sell and distribute physical access codes.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesCreateLibraryCreateLibraryEndpoint", "requestBody": { "x-name": "CreateLibraryRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateLibraryRequest" } } }, "required": true, "x-position": 1 }, "responses": { "201": { "description": "Library created successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateLibraryResponse" } } } }, "400": { "description": "Validation failure (Name, Address, ContactNumber empty or too long)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant not found or unauthenticated)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/libraries/{id}/resources": { "delete": { "tags": [ "Library Management", "Library" ], "summary": "Deauthorizes a resource from a library", "description": "Revokes a partner library's permission to sell access codes for the specified course/resource.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesDeauthorizeResourceDeauthorizeResourceEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "DeauthorizeResourceRequest", "description": "", "content": { "*/*": { "schema": { "$ref": "#/components/schemas/DeauthorizeResourceRequest" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DeauthorizeResourceRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Resource deauthorized from library successfully" }, "400": { "description": "Validation failure (LibraryId or ResourceArn empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:AttachCourses permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Library not found or resource not authorized (Library.NotFound, Library.ResourceNotAuthorized)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] }, "post": { "tags": [ "Library Management", "Library" ], "summary": "Authorizes a resource for a library", "description": "Enables a partner library to sell access codes for the specified course/resource.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsLibrariesAuthorizeResourceAuthorizeResourceEndpoint", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "AuthorizeResourceRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthorizeResourceRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Resource authorized for library successfully" }, "400": { "description": "Validation failure (LibraryId or ResourceArn empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:AttachCourses permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Library not found (Library.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Resource already authorized (Library.ResourceAlreadyAuthorized)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/access-codes/void": { "post": { "tags": [ "Library", "Library" ], "summary": "Voids an access code", "description": "Permanently voids an access code so it cannot be redeemed.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsAccessCodesVoidCodeVoidCodeEndpoint", "requestBody": { "x-name": "VoidCodeRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VoidCodeRequest" } } }, "required": true, "x-position": 1 }, "responses": { "204": { "description": "Access code voided successfully" }, "400": { "description": "Validation failure (RawCode or Reason empty/too long)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Access code not found (AccessCode.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Access code already voided (AccessCode.AlreadyVoided)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/libraries/{libraryId}/access-codes/generate": { "post": { "tags": [ "Library", "Library" ], "summary": "Generates a batch of access codes for a library", "description": "Generates physical or digital access codes linked to a course/resource for distribution.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsAccessCodesGenerateBatchGenerateBatchEndpoint", "parameters": [ { "name": "libraryId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "requestBody": { "x-name": "GenerateBatchRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateBatchRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Access codes generated successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateBatchResponse" } } } }, "400": { "description": "Validation failure (Quantity <= 0 or > 1000, StrategyId or TargetResourceArn empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant not found or unauthenticated)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:GenerateCodes or library not authorized for resource)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Library not found (Library.NotFound)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/admin/access-codes/generate-single": { "post": { "tags": [ "Library Management", "Library" ], "summary": "Generates a single administrative access code", "description": "Generates a direct access code bypass without going through library batches.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsAccessCodesGenerateAdminCodeGenerateAdminCodeEndpoint", "requestBody": { "x-name": "GenerateAdminCodeRequest", "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateAdminCodeRequest" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "Admin access code generated successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateAdminCodeResponse" } } } }, "400": { "description": "Validation failure (TargetResourceArn or StrategyId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized (Tenant not found or unauthenticated)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:Audit permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/library/access-codes/batches/{batchId}/distribute": { "post": { "tags": [ "Library", "Library" ], "summary": "Distributes a batch of access codes", "description": "Marks a batch of minted access codes as distributed to libraries for sale.", "operationId": "AlphaZeroModulesLibraryPresentationEndpointsAccessCodesDistributeBatchDistributeBatchEndpoint", "parameters": [ { "name": "batchId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" } } ], "responses": { "204": { "description": "Batch distributed successfully" }, "400": { "description": "Validation failure (BatchId empty)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden (Missing library:SellCodes permission)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "409": { "description": "Invalid code status (AccessCode.InvalidStatus)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } }, "/api/video-uploading/debug/videos": { "get": { "tags": [ "Video Uploading Debug" ], "operationId": "GetApiVideoUploadingDebugVideos", "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true }, "x-position": 1 }, { "name": "perPage", "in": "query", "schema": { "type": "integer", "format": "int32", "nullable": true }, "x-position": 2 } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedResultOfVideoResponse" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/video-uploading/debug/videos/{id}": { "get": { "tags": [ "Video Uploading Debug" ], "operationId": "GetApiVideoUploadingDebugVideos2", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Debug_VideoResponse" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "delete": { "tags": [ "Video Uploading Debug" ], "operationId": "DeleteApiVideoUploadingDebugVideos", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "204": { "description": "" }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "patch": { "tags": [ "Video Uploading Debug" ], "operationId": "PatchApiVideoUploadingDebugVideos", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateVideoInfo_Request" } } }, "required": true, "x-position": 2 }, "responses": { "204": { "description": "" }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/video-uploading/debug/videos/{id}/state": { "get": { "tags": [ "Video Uploading Debug" ], "operationId": "GetApiVideoUploadingDebugVideosState", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VideoStateDto" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/video-uploading/upload": { "post": { "tags": [ "Video Uploading" ], "operationId": "PostApiVideoUploadingUpload", "requestBody": { "x-name": "request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Upload_Request" } } }, "required": true, "x-position": 1 }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Upload_Response" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/video/{videoId}": { "get": { "tags": [ "Video Streaming" ], "operationId": "GetApiVideo", "parameters": [ { "name": "videoId", "in": "path", "required": true, "schema": { "type": "string", "format": "guid" }, "x-position": 1 } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StreamingInfoResponseDTO" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/users/me": { "get": { "operationId": "GetUsersMe", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "security": [ { "JWTBearerAuth": [] }, { "oauth2": [] } ] } } }, "components": { "schemas": { "RegisterDeviceResponse": { "type": "object", "additionalProperties": false, "properties": { "deviceId": { "type": "string", "format": "guid" } } }, "ProblemDetails": { "type": "object", "additionalProperties": { "nullable": true }, "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } } }, "RegisterDeviceRequest": { "type": "object", "additionalProperties": false, "properties": { "deviceName": { "type": "string" }, "platform": { "type": "string" }, "publicKey": { "type": "string" } } }, "SetMainDeviceRequest": { "type": "object", "additionalProperties": false, "properties": { "deviceId": { "type": "string", "format": "guid" } } }, "PrincipalDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "username": { "type": "string" }, "name": { "type": "string" }, "principalType": { "$ref": "#/components/schemas/PrincipalType" }, "principalScopeUrn": { "type": "string", "nullable": true } } }, "PrincipalType": { "type": "integer", "description": "", "x-enumNames": [ "User", "Role" ], "enum": [ 0, 1 ] }, "GetPrincipalsByResourceRequest": { "type": "object", "additionalProperties": false }, "PrincipalPoliciesDto": { "type": "object", "additionalProperties": false, "properties": { "principalId": { "type": "string", "format": "guid" }, "inlinePolicies": { "type": "array", "items": { "$ref": "#/components/schemas/PolicyDto" } }, "managedPolicies": { "type": "array", "items": { "$ref": "#/components/schemas/ManagedPolicyDto" } } } }, "PolicyDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "name": { "type": "string" }, "statements": { "type": "array", "items": { "$ref": "#/components/schemas/PolicyStatement" } } } }, "PolicyStatement": { "type": "object", "additionalProperties": false, "properties": { "sid": { "type": "string" }, "actions": { "type": "array", "items": { "type": "string" } }, "effect": { "type": "boolean" }, "resources": { "type": "array", "items": { "$ref": "#/components/schemas/ResourcePattern" } }, "condition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/IConditionNode" } ] } } }, "ResourcePattern": { "type": "object", "additionalProperties": false, "properties": { "value": { "type": "string" }, "service": { "type": "string" }, "tenantIdString": { "type": "string" }, "resourcePath": { "type": "string" } } }, "IConditionNode": { "type": "object", "x-abstract": true, "additionalProperties": false, "properties": { "type": { "$ref": "#/components/schemas/ConditionType" } } }, "ConditionType": { "type": "integer", "description": "", "x-enumNames": [ "And", "Or", "Not", "Statement", "Reference" ], "enum": [ 0, 1, 2, 3, 4 ] }, "ManagedPolicyDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "name": { "type": "string" }, "statements": { "type": "array", "items": { "$ref": "#/components/schemas/ManagedPolicyStatement" } } } }, "ManagedPolicyStatement": { "type": "object", "additionalProperties": false, "properties": { "sid": { "type": "string" }, "actions": { "type": "array", "items": { "type": "string" } }, "effect": { "type": "boolean" }, "condition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/IConditionNode" } ] } } }, "GetPrincipalPoliciesRequest": { "type": "object", "additionalProperties": false }, "DetachManagedPolicyRequest": { "type": "object", "additionalProperties": false }, "DetachInlinePolicyRequest": { "type": "object", "additionalProperties": false }, "CreatePrincipalResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreatePrincipalRequest": { "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" }, "principalType": { "type": "string" }, "principalScope": { "type": "string", "nullable": true }, "name": { "type": "string" } } }, "AttachManagedPolicyRequest": { "type": "object", "additionalProperties": false }, "AttachInlinePolicyRequest": { "type": "object", "additionalProperties": false, "properties": { "policyName": { "type": "string" }, "statements": { "type": "array", "items": { "$ref": "#/components/schemas/PolicyStatement" } } } }, "DeleteManagedPolicyRequest": { "type": "object", "additionalProperties": false }, "CreateManagedPolicyResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreateManagedPolicyRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "statements": { "type": "array", "items": { "$ref": "#/components/schemas/ManagedPolicyStatement" } } } }, "RegisterStudentResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "RegisterStudentRequest": { "type": "object", "additionalProperties": false, "properties": { "tenantId": { "type": "string", "format": "guid" }, "username": { "type": "string" }, "password": { "type": "string" }, "name": { "type": "string" } } }, "TokenResponse": { "type": "object", "additionalProperties": false, "properties": { "token": { "type": "string" }, "tenantUserId": { "type": "string", "format": "guid" }, "deviceId": { "type": "string", "format": "guid", "nullable": true } } }, "LoginPrincipalRequest": { "type": "object", "additionalProperties": false, "properties": { "tenantId": { "type": "string", "format": "guid" }, "username": { "type": "string" }, "password": { "type": "string" } } }, "LoginAsTenantUserRequest": { "type": "object", "additionalProperties": false, "properties": { "tenantId": { "type": "string", "format": "guid" }, "publicKey": { "type": "string" }, "deviceName": { "type": "string" }, "platform": { "type": "string" } } }, "GetVideoKeyRequest": { "type": "object", "additionalProperties": false }, "UpdateTenantRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "primaryColor": { "type": "string", "nullable": true }, "secondaryColor": { "type": "string", "nullable": true }, "logoUrl": { "type": "string", "nullable": true }, "darkModeLogoUrl": { "type": "string", "nullable": true }, "faviconUrl": { "type": "string", "nullable": true } } }, "LookupTenantResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "subdomain": { "type": "string" }, "name": { "type": "string" }, "branding": { "$ref": "#/components/schemas/LookupTenantBranding" } } }, "LookupTenantBranding": { "type": "object", "additionalProperties": false, "properties": { "primaryColor": { "type": "string" }, "secondaryColor": { "type": "string", "nullable": true }, "logoUrl": { "type": "string", "nullable": true }, "darkModeLogoUrl": { "type": "string", "nullable": true }, "faviconUrl": { "type": "string", "nullable": true } } }, "LookupTenantRequest": { "type": "object", "additionalProperties": false }, "PagedResultOfTenantDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/TenantDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "TenantDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "name": { "type": "string" }, "subdomain": { "type": "string" }, "logoUrl": { "type": "string", "nullable": true }, "primaryColor": { "type": "string", "nullable": true }, "secondaryColor": { "type": "string", "nullable": true }, "darkModeLogoUrl": { "type": "string", "nullable": true }, "faviconUrl": { "type": "string", "nullable": true }, "status": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" } } }, "ListTenantsRequest": { "type": "object", "additionalProperties": false }, "GetTenantRequest": { "type": "object", "additionalProperties": false }, "DeleteTenantRequest": { "type": "object", "additionalProperties": false }, "CreateTenantResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreateTenantRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "subdomain": { "type": "string" }, "logoUrl": { "type": "string", "nullable": true }, "primaryColor": { "type": "string", "nullable": true }, "secondaryColor": { "type": "string", "nullable": true }, "darkModeLogoUrl": { "type": "string", "nullable": true }, "faviconUrl": { "type": "string", "nullable": true } } }, "SubmitAssessmentResponse": { "type": "object", "additionalProperties": false, "properties": { "score": { "type": "number", "format": "decimal", "nullable": true }, "status": { "type": "string" } } }, "SubmitAssessmentRequest": { "type": "object", "additionalProperties": false, "properties": { "responses": { "$ref": "#/components/schemas/AssessmentSubmissionResponses" } } }, "AssessmentSubmissionResponses": { "type": "object", "additionalProperties": false, "properties": { "answers": { "type": "object", "additionalProperties": {} } } }, "PagedResultOfSubmissionSummaryDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/SubmissionSummaryDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "SubmissionSummaryDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "assessmentId": { "type": "string", "format": "guid" }, "studentId": { "type": "string", "format": "guid" }, "status": { "type": "string" }, "totalScore": { "type": "number", "format": "decimal", "nullable": true }, "submittedAt": { "type": "string", "format": "date-time" } } }, "ListSubmissionsRequest": { "type": "object", "additionalProperties": false }, "UpdateAssessmentContentRequest": { "type": "object", "additionalProperties": false, "properties": { "content": { "$ref": "#/components/schemas/AssessmentContent" } } }, "AssessmentContent": { "type": "object", "additionalProperties": false, "properties": { "version": { "type": "string" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/AssessmentItem" } } } }, "AssessmentItem": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ItemType" }, "renderData": {}, "questionType": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/QuestionType" } ] }, "points": { "type": "number", "format": "decimal", "nullable": true }, "gradingData": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/GradingData" } ] } } }, "ItemType": { "type": "integer", "description": "", "x-enumNames": [ "Paragraph", "Question" ], "enum": [ 0, 1 ] }, "QuestionType": { "type": "integer", "description": "", "x-enumNames": [ "MCQ", "Handwritten", "Voice", "Video" ], "enum": [ 0, 1, 2, 3 ] }, "GradingData": { "type": "object", "additionalProperties": false, "properties": { "choices": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/Choice" } }, "correctChoiceId": { "type": "string", "nullable": true }, "shuffleOptions": { "type": "boolean" }, "rubric": { "type": "string", "nullable": true }, "aiHint": { "type": "string", "nullable": true } } }, "Choice": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "renderData": {} } }, "PagedResultOfAssessmentDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/AssessmentDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "AssessmentDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "type": { "type": "string" }, "passingScore": { "type": "number", "format": "decimal" }, "status": { "type": "string" } } }, "ListAssessmentsRequest": { "type": "object", "additionalProperties": false }, "AssessmentDetailsDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "type": { "type": "string" }, "passingScore": { "type": "number", "format": "decimal" }, "status": { "type": "string" }, "versionNumber": { "type": "integer", "format": "int32" }, "content": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/AssessmentContent" } ] } } }, "GetAssessmentRequest": { "type": "object", "additionalProperties": false }, "CreateAssessmentResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreateAssessmentRequest": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "type": { "type": "string" }, "passingScore": { "type": "number", "format": "decimal" }, "initialContent": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/AssessmentContent" } ] } } }, "CompleteItemRequest": { "type": "object", "additionalProperties": false, "properties": { "bitIndex": { "type": "integer", "format": "int32" } } }, "PagedResultOfSubjectDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/SubjectDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "SubjectDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true } } }, "ListSubjectsRequest": { "type": "object", "additionalProperties": false }, "GetSubjectRequest": { "type": "object", "additionalProperties": false }, "CreateSubjectResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreateSubjectRequest": { "type": "object", "example": { "name": "Mathematics", "description": "General mathematics curriculum for high school." }, "additionalProperties": false, "properties": { "name": { "type": "string", "example": "Mathematics" }, "description": { "type": "string", "nullable": true, "example": "General mathematics curriculum for high school." } } }, "EnrollementResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "studentId": { "type": "string", "format": "guid" }, "courseId": { "type": "string", "format": "guid" }, "status": { "type": "string" }, "completionPercentage": { "type": "number", "format": "double" }, "enrolledOn": { "type": "string", "format": "date-time" }, "tenantId": { "type": "string", "format": "guid" } } }, "GetEnrollementRequest": { "type": "object", "additionalProperties": false }, "EnrollInCourseResponse": { "type": "object", "additionalProperties": false, "properties": { "enrollmentId": { "type": "string", "format": "guid" } } }, "EnrollInCourseRequest": { "type": "object", "example": { "studentId": "b37991b4-aeb9-4822-9286-f77abbf08074", "courseId": "c7449dbd-d1ff-4e06-bb0e-68d4349b6f9f" }, "additionalProperties": false, "properties": { "studentId": { "type": "string", "format": "guid", "example": "b37991b4-aeb9-4822-9286-f77abbf08074" }, "courseId": { "type": "string", "format": "guid", "example": "c7449dbd-d1ff-4e06-bb0e-68d4349b6f9f" } } }, "DashboardResponse": { "type": "object", "additionalProperties": false, "properties": { "academies": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/components/schemas/EnrollmentDto" } } } } }, "EnrollmentDto": { "type": "object", "additionalProperties": false, "properties": { "enrollmentId": { "type": "string", "format": "guid" }, "courseId": { "type": "string", "format": "guid" }, "status": { "type": "string" }, "completionPercentage": { "type": "number", "format": "double" }, "enrolledOn": { "type": "string", "format": "date-time" } } }, "GetStudentDashboardRequest": { "type": "object", "additionalProperties": false }, "ApproveCourseRequest": { "type": "object", "additionalProperties": false }, "PublishCourseRequest": { "type": "object", "additionalProperties": false }, "RejectCourseRequest": { "type": "object", "additionalProperties": false, "properties": { "reason": { "type": "string" } } }, "SubmitForReviewRequest": { "type": "object", "additionalProperties": false }, "ReorderSectionsRequest": { "type": "object", "additionalProperties": false, "properties": { "sectionIds": { "type": "array", "items": { "type": "string", "format": "guid" } } } }, "ReorderItemsRequest": { "type": "object", "additionalProperties": false, "properties": { "itemIds": { "type": "array", "items": { "type": "string", "format": "guid" } } } }, "UpdatePlanRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "principalId": { "type": "string", "format": "guid" } } }, "RemovePlanRequest": { "type": "object", "additionalProperties": false }, "AddPlanResponse": { "type": "object", "additionalProperties": false, "properties": { "planId": { "type": "string", "format": "guid" } } }, "AddPlanRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "principalId": { "type": "string", "format": "guid" } } }, "PagedResultOfCourseSummaryDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/CourseSummaryDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "CourseSummaryDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "subjectId": { "type": "string", "format": "guid" }, "status": { "type": "string" } } }, "ListCoursesRequest": { "type": "object", "additionalProperties": false }, "CourseResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "subjectId": { "type": "string", "format": "guid" }, "status": { "type": "string" }, "sections": { "type": "array", "items": { "$ref": "#/components/schemas/SectionResponse" } } } }, "SectionResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "order": { "type": "integer", "format": "int32" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/ItemResponse" } } } }, "ItemResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "type": { "type": "string" }, "order": { "type": "integer", "format": "int32" }, "bitIndex": { "type": "integer", "format": "int32" }, "resources": { "type": "array", "items": { "$ref": "#/components/schemas/ResourceResponse" } } } }, "ResourceResponse": { "type": "object", "additionalProperties": false, "properties": { "arn": { "type": "string" }, "type": { "type": "string" }, "order": { "type": "integer", "format": "int32" }, "metadata": {} } }, "GetCourseRequest": { "type": "object", "additionalProperties": false }, "CreateCourseResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreateCourseRequest": { "type": "object", "example": { "title": "Introduction to Algebra", "description": "A basic course covering algebraic foundations.", "subjectId": "00000000-0000-0000-0000-000000000001" }, "additionalProperties": false, "properties": { "title": { "type": "string", "example": "Introduction to Algebra" }, "description": { "type": "string", "nullable": true, "example": "A basic course covering algebraic foundations." }, "subjectId": { "type": "string", "format": "guid", "example": "00000000-0000-0000-0000-000000000001" } } }, "AddSectionRequest": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" } } }, "AddLessonRequest": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" }, "videoId": { "type": "string", "format": "guid" } } }, "AddAssessmentRequest": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" }, "assessmentId": { "type": "string", "format": "guid" }, "type": { "type": "string" }, "passingScore": { "type": "number", "format": "decimal" }, "description": { "type": "string", "nullable": true } } }, "CourseAnalyticsDto": { "type": "object", "additionalProperties": false, "properties": { "courseId": { "type": "string", "format": "guid" }, "totalEnrollments": { "type": "integer", "format": "int32" }, "averageCompletionPercentage": { "type": "number", "format": "double" }, "itemCompletionRates": { "type": "array", "items": { "$ref": "#/components/schemas/ItemCompletionDto" } } } }, "ItemCompletionDto": { "type": "object", "additionalProperties": false, "properties": { "bitIndex": { "type": "integer", "format": "int32" }, "completedCount": { "type": "integer", "format": "int32" }, "completionPercentage": { "type": "number", "format": "double" } } }, "GetCourseAnalyticsRequest": { "type": "object", "additionalProperties": false }, "PagedResultOfEnrollmentDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/EnrollmentDto2" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "EnrollmentDto2": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "studentId": { "type": "string", "format": "guid" }, "courseId": { "type": "string", "format": "guid" }, "status": { "type": "string" }, "completionPercentage": { "type": "number", "format": "double" }, "enrolledOn": { "type": "string", "format": "date-time" }, "tenantId": { "type": "string", "format": "guid" } } }, "ListStudentProgressRequest": { "type": "object", "additionalProperties": false }, "PagedResultOfRedemptionAuditLogDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/RedemptionAuditLogDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "RedemptionAuditLogDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "accessCodeId": { "type": "string", "format": "guid" }, "libraryId": { "type": "string", "format": "guid", "nullable": true }, "redeemedByUserId": { "type": "string", "format": "guid" }, "strategyId": { "type": "string" }, "targetResourceArn": { "type": "string" }, "redeemedAt": { "type": "string", "format": "date-time" }, "ipAddress": { "type": "string", "nullable": true }, "deviceFingerprint": { "type": "string", "nullable": true } } }, "GetRedemptionLogsRequest": { "type": "object", "additionalProperties": false }, "RedeemCodeRequest": { "type": "object", "additionalProperties": false, "properties": { "rawCode": { "type": "string" } } }, "UpdateLibraryRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "address": { "type": "string" }, "contactNumber": { "type": "string" } } }, "PagedResultOfLibraryDto": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/LibraryDto" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "LibraryDto": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "name": { "type": "string" }, "address": { "type": "string" }, "contactNumber": { "type": "string" }, "allowedResources": { "type": "array", "items": { "type": "string" } } } }, "ListLibrariesRequest": { "type": "object", "additionalProperties": false }, "GetLibraryRequest": { "type": "object", "additionalProperties": false }, "DeleteLibraryRequest": { "type": "object", "additionalProperties": false }, "DeauthorizeResourceRequest": { "type": "object", "additionalProperties": false, "properties": { "resourceArn": { "type": "string" } } }, "CreateLibraryResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" } } }, "CreateLibraryRequest": { "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "address": { "type": "string" }, "contactNumber": { "type": "string" } } }, "AuthorizeResourceRequest": { "type": "object", "additionalProperties": false, "properties": { "resourceArn": { "type": "string" } } }, "VoidCodeRequest": { "type": "object", "additionalProperties": false, "properties": { "rawCode": { "type": "string" }, "reason": { "type": "string" } } }, "GenerateBatchResponse": { "type": "object", "additionalProperties": false, "properties": { "codes": { "type": "array", "items": { "type": "string" } } } }, "GenerateBatchRequest": { "type": "object", "additionalProperties": false, "properties": { "quantity": { "type": "integer", "format": "int32" }, "strategyId": { "type": "string" }, "targetResourceArn": { "type": "string" }, "metadata": { "type": "object", "additionalProperties": {} } } }, "GenerateAdminCodeResponse": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "string" } } }, "GenerateAdminCodeRequest": { "type": "object", "additionalProperties": false, "properties": { "targetResourceArn": { "type": "string" }, "metadata": { "type": "object", "nullable": true, "additionalProperties": {} } } }, "DistributeBatchRequest": { "type": "object", "additionalProperties": false }, "PagedResultOfVideoResponse": { "type": "object", "additionalProperties": false, "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/Debug_VideoResponse" } }, "totalCount": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "hasNextPage": { "type": "boolean" }, "hasPreviousPage": { "type": "boolean" } } }, "Debug_VideoResponse": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "guid" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "status": { "type": "string" }, "thumbnailUrl": { "type": "string", "nullable": true }, "streamingUrl": { "type": "string", "nullable": true }, "metadata": { "$ref": "#/components/schemas/VideoMetadata" }, "specifications": { "$ref": "#/components/schemas/VideoSpecifications" }, "sourceKey": { "type": "string" }, "outputFolder": { "type": "string", "nullable": true }, "createdOn": { "type": "string", "format": "date-time" }, "publishedOn": { "type": "string", "format": "date-time", "nullable": true } } }, "VideoMetadata": { "type": "object", "additionalProperties": false, "properties": { "originalFileName": { "type": "string" }, "contentType": { "type": "string" }, "fileSize": { "type": "integer", "format": "int64" }, "transcodingMethod": { "type": "string" }, "encryptionMethod": { "type": "string", "nullable": true } } }, "VideoSpecifications": { "type": "object", "additionalProperties": false, "properties": { "duration": { "type": "string", "format": "duration" }, "resolution": { "$ref": "#/components/schemas/Resolution" } } }, "Resolution": { "type": "object", "additionalProperties": false, "properties": { "width": { "type": "integer", "format": "int32" }, "height": { "type": "integer", "format": "int32" } } }, "VideoStateDto": { "type": "object", "additionalProperties": false, "properties": { "correlationId": { "type": "string", "format": "guid" }, "tenantId": { "type": "string", "format": "guid" }, "currentState": { "type": "string" }, "mediaConverterJobId": { "type": "string", "nullable": true }, "key": { "type": "string", "nullable": true }, "customThumbnailKey": { "type": "string", "nullable": true }, "isFailed": { "type": "boolean" }, "version": { "type": "integer", "format": "int32" } } }, "UpdateVideoInfo_Request": { "type": "object", "additionalProperties": false, "properties": { "title": { "type": "string" }, "description": { "type": "string", "nullable": true } } }, "Upload_Response": { "type": "object", "additionalProperties": false, "properties": { "videoId": { "type": "string", "format": "guid" }, "tenantId": { "type": "string", "format": "guid" }, "key": { "type": "string" }, "preSignedUrl": { "type": "string" }, "transcodingMethod": { "type": "string" }, "encryptionMethod": { "type": "string" }, "headers": { "type": "object", "additionalProperties": { "type": "string" } }, "thumbnailKey": { "type": "string", "nullable": true }, "thumbnailPreSignedUrl": { "type": "string", "nullable": true }, "thumbnailHeaders": { "type": "object", "nullable": true, "additionalProperties": { "type": "string" } } } }, "Upload_Request": { "type": "object", "additionalProperties": false, "properties": { "fileName": { "type": "string" }, "contentType": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "transcodingMethod": { "type": "string", "nullable": true }, "encryptionMethod": { "type": "string", "nullable": true }, "generateCustomThumbnailUrl": { "type": "boolean", "nullable": true }, "targetResourceArn": { "type": "string", "nullable": true } } }, "StreamingInfoResponseDTO": { "type": "object", "additionalProperties": false, "properties": { "url": { "type": "string" }, "encryptionMethod": { "type": "string", "nullable": true }, "licenseUrl": { "type": "string", "nullable": true }, "drm": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/DrmInfo" } ] } } }, "DrmInfo": { "type": "object", "additionalProperties": false, "properties": { "widevineUrl": { "type": "string", "nullable": true }, "playReadyUrl": { "type": "string", "nullable": true }, "token": { "type": "string", "nullable": true } } } }, "securitySchemes": { "JWTBearerAuth": { "type": "http", "description": "Enter a JWT token to authorize the requests...", "scheme": "Bearer", "bearerFormat": "JWT" }, "oauth2": { "type": "oauth2", "flows": { "authorizationCode": { "authorizationUrl": "http://localhost:8080/realms/alpha-zero/protocol/openid-connect/auth", "tokenUrl": "http://localhost:8080/realms/alpha-zero/protocol/openid-connect/token", "scopes": { "openid": "openid", "profile": "profile", "email": "email" } } } } } } }