user
course

查询用户加入的班级 (course:read)

get/user/courses

Response

查询成功

Example response

{
  "courses": [
    {
      "id": 42,
      "tag": {
        "id": 42
      },
      "term": {
        "id": 42
      },
      "url": "/OnlineJudge/api/v1/course/42",
      "join_url": "/OnlineJudge/api/v1/course/42/join",
      "quit_url": "/OnlineJudge/api/v1/course/42/quit",
      "html_url": "/OnlineJudge/course/42"
    }
  ]
}

Changes

Changed in 3 of the 11 revisions of this API.51

    • the response property courses/items/join_url became nullable for the status 200

      response-property-became-nullable

    • the response property courses/items/quit_url became nullable for the status 200

      response-property-became-nullable

    • the response property courses/items/tag became nullable for the status 200

      response-property-became-nullable

    • the response property courses/items/term became nullable for the status 200

      response-property-became-nullable

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog