FeasOJ
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Problem
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
    • Delete Discussion
    • Get all discussion
    • Get discussion info
  • 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
      • Get all info of a given problem id
        GET
      • Add/Update problem info
        POST
      • Delete problem
        DELETE
    • 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. Problem

Get all info of a given problem id

GET
http://127.0.0.1:37881/api/v1/admin/problems/{pid}
Last modified:2025-01-13 17:10:24

Request

Path Params
pid
string 
required
题目ID
Header Params
username
string 
required
Authorization
string 
required

Responses

🟢200成功
application/json
Body
problemInfo
object 
required
pid
integer 
required
difficulty
string 
required
title
string 
required
content
string 
required
time_limit
string 
required
memory_limit
string 
required
input
string 
required
output
string 
required
contest_id
integer 
required
is_visible
boolean 
required
test_cases
array [object {2}] 
required
Example
{"problemInfo":{"pid":1,"difficulty":"简单","title":"A+B Problem","content":"Input **2** variables, **A** and **B**, then output the value they add up to.","time_limit":"1","memory_limit":"64","input":"1 2","output":"3","contest_id":0,"is_visible":true,"test_cases":[{"input":"1 2","output":"3"},{"input":"2 4","output":"6"},{"input":"3 7","output":"10"}]}}
Previous
Get all problems
Next
Add/Update problem info
Built with