course

列出班级 (无需 scope)

get/course/

Query parameters

keywordstring

按关键词查找班级

terminteger

只显示指定学期的班级

taginteger

只显示指定标签的班级

cursorinteger

分页指针

Response

查询成功

nextstring nullable

下一页的地址,最后一页为 null

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"
    }
  ],
  "next": "/OnlineJudge/api/v1/endpoint?cursor=42"
}

Changes

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

    • 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

    • the response property next 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