problem

列出题目 (problem:read)

get/problem/

Query parameters

keywordstring

按关键词查找题目

problemset_idinteger

只显示指定比赛或作业中的题目

cursorinteger

分页指针

Response

查询成功

nextstring nullable

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

Example response

{
  "problems": [
    {
      "id": 1000,
      "title": "A+B",
      "url": "/OnlineJudge/api/v1/problem/42",
      "submit_url": "/OnlineJudge/api/v1/problem/42/submit",
      "html_url": "/OnlineJudge/problem/42"
    }
  ],
  "next": "/OnlineJudge/api/v1/endpoint?cursor=42"
}

Changes

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

  • aa6951cc6ba1111See the full diff
    • the response property next became nullable for the status 200

      response-property-became-nullable

    • removed the optional property submissions from the response with the 200 status

      response-optional-property-removed

    • added the optional property problems to the response with the 200 status

      response-optional-property-added

    • 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