FeasOJ
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Competition
FeasOJ
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Competition
    • Get list of competition
      GET
    • Get whether the user is in a competition
      GET
    • Get participating users of the competition
      GET
    • Get competition info
      GET
    • Get problems of competition
      GET
    • Join competition
      POST
    • Join competition with password
      POST
    • Quit competition
      POST
  • Users
    • Update password
      PUT
    • Update avatar
      PUT
    • Get user submit records within 30 days
      GET
    • Get user info
      GET
    • Update synopsis
      PUT
  • Problem
    • Get all problems
      GET
    • Get all info of a given problem id
      GET
    • Upload code
      POST
  • SubmitRecords
    • Get all of submit records within 30 days
  • Discussion
    • Comment
      • Get comments on the discussion
      • Add comment
      • Delete comment
    • Add Discussion
    • Delete Discussion
    • Get all discussion
    • Get discussion info
  • Administrator
    • Competition
      • Scoring Competition
        GET
      • Get competition score board
        GET
      • Get list of competition
        GET
      • Get competition info
        GET
      • Add/Update competition info
        POST
      • Delete competition
        DELETE
    • Problem
      • Get all problems
      • Get all info of a given problem id
      • Add/Update problem info
      • Delete problem
    • Users
      • Get all user details
      • Promote user
      • Demote user
      • Ban user
      • Unban user
    • Get IP Statistics
      GET
  • Login
    GET
  • Get ranking
    GET
  • Get captcha
    GET
  • Verify user info
    GET
  • SSE Notice Service
    GET
  • Register
    POST
  1. Competition

Get list of competition

GET
http://127.0.0.1:37881/api/v1/admin/competitions
Last modified:2025-01-13 17:08:51

Request

Header Params
username
string 
required
Authorization
string 
required

Responses

🟢200OK
application/json
Body
contests
array [object {9}] 
required
contest_id
integer 
required
title
string 
required
subtitle
string 
required
difficulty
string 
required
password
string 
required
have_password
boolean 
required
is_visible
boolean 
required
start_at
string 
required
end_at
string 
required
Example
{
    "contests": [
        {
            "contest_id": 1,
            "title": "第一次练习",
            "subtitle": "22计算机3班",
            "difficulty": "简单",
            "password": "123456",
            "have_password": true,
            "is_visible": true,
            "start_at": "2024-08-19T00:00:00+08:00",
            "end_at": "2024-09-19T00:00:00+08:00"
        },
        {
            "contest_id": 2,
            "title": "测试",
            "subtitle": "临时97",
            "difficulty": "简单",
            "password": "",
            "have_password": false,
            "is_visible": true,
            "start_at": "2024-09-20T00:00:00+08:00",
            "end_at": "2024-10-20T00:00:00+08:00"
        },
        {
            "contest_id": 3,
            "title": "测",
            "subtitle": "92",
            "difficulty": "困难",
            "password": "123",
            "have_password": true,
            "is_visible": true,
            "start_at": "2024-08-19T00:00:00+08:00",
            "end_at": "2024-08-20T00:00:00+08:00"
        },
        {
            "contest_id": 4,
            "title": "测2",
            "subtitle": "123",
            "difficulty": "中等",
            "password": "",
            "have_password": false,
            "is_visible": true,
            "start_at": "2024-11-11T00:00:00+08:00",
            "end_at": "2024-12-11T00:00:00+08:00"
        },
        {
            "contest_id": 5,
            "title": "第二次Java练习",
            "subtitle": "22级人工智能2班",
            "difficulty": "困难",
            "password": "245",
            "have_password": true,
            "is_visible": true,
            "start_at": "2024-09-23T00:00:00+08:00",
            "end_at": "2024-09-24T00:00:00+08:00"
        }
    ]
}
Previous
Get competition score board
Next
Get competition info
Built with