course

查看班级详情 (无需 scope)

get/course/{course}

Path parameters

courseinteger required
Example:42

班级编号

Response

查询成功

idinteger
namestring
descriptionstring
urlstring
join_urlstring nullable
quit_urlstring nullable
html_urlstring

Example response

{
  "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 join_url became nullable for the status 200

      response-property-became-nullable

    • the response property quit_url became nullable for the status 200

      response-property-became-nullable

    • the response property tag became nullable for the status 200

      response-property-became-nullable

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