GET/api/public/v1/grade-sessions/{id}

grade_sessions.read

所需权限
grades:read
类别
只读
计费
不计费
幂等
不需要
MCP 工具
get_grade_session

参数

  • id位置 path必填 是类型 string (uuid)

请求体

没有请求体

成功响应 200

{
  "type": "object",
  "properties": {
    "session": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "locked",
            "archived"
          ]
        },
        "classId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "paperId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ]
        },
        "examDate": {
          "type": "string",
          "format": "date-time"
        },
        "examKind": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "weekly",
                "monthly",
                "midterm",
                "final",
                "homework"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "archivedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "title",
        "status",
        "classId",
        "paperId",
        "examDate",
        "examKind",
        "archivedAt",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": false
    },
    "scheme": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "seq": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "fullScore": {
            "type": "number",
            "minimum": 0
          },
          "problemType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "markdown": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "seq",
          "fullScore",
          "problemType",
          "markdown"
        ],
        "additionalProperties": false
      }
    },
    "progress": {
      "type": "object",
      "properties": {
        "sheets": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "inFlight": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "done": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "failed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "total",
            "inFlight",
            "done",
            "failed"
          ],
          "additionalProperties": false
        },
        "answers": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "pending": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "scored": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "flagged": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "failed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "confirmed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "total",
            "pending",
            "scored",
            "flagged",
            "failed",
            "confirmed"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "sheets",
        "answers"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "session",
    "scheme",
    "progress"
  ],
  "additionalProperties": false
}

可能返回的错误状态码

400401403404409429500503

所有错误都用同一种错误信封返回,原因码见错误与限流。

GET /api/public/v1/grade-sessions/{id} · 接口参考