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
      GET
  • Discussion
    • Comment
      • Get comments on the discussion
      • Add comment
      • Delete comment
    • Add Discussion
      POST
    • Delete Discussion
      DELETE
    • Get all discussion
      GET
    • Get discussion info
      GET
  • Administrator
    • Competition
      • Scoring Competition
      • Get competition score board
      • Get list of competition
      • Get competition info
      • Add/Update competition info
      • Delete competition
    • 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 competition info

GET
http://127.0.0.1:37881/api/v1/competitions/info/{cid}
Last modified:2025-01-13 17:02:07

Request

Path Params
cid
string 
required
Header Params
Username
string 
required
Authorization
string 
required

Responses

🟢200OK
application/json
Body
contest
object 
required
contest_id
integer 
required
title
string 
required
subtitle
string 
required
difficulty
string 
required
have_password
boolean 
required
start_at
string 
required
end_at
string 
required
Example
{"contest":{"contest_id":1,"title":"第一次练习","subtitle":"22计算机3班","difficulty":"简单","have_password":true,"start_at":"2024-08-19T10:20:00+08:00","end_at":"2024-09-19T20:10:00+08:00"}}
Previous
Get participating users of the competition
Next
Get problems of competition
Built with