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
      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. Problem

Get all problems

GET
http://127.0.0.1:37881/api/v1/problems
Last modified:2025-01-13 17:03:11

Request

Header Params
username
string 
required
Authorization
string 
required

Responses

🟢200OK
application/json
Body
problems
array [object {8}] 
required
Pid
integer 
题目ID
required
Difficulty
string 
required
Title
string 
题目名称
required
Content
string 
题目内容
required
Timelimit
string 
required
Memorylimit
string 
required
Input
string 
输入样例
required
Output
string 
输出样例
required
Example
{"problems":[{"Pid":1,"Difficulty":"中等","Title":"A+B Problem","Content":"输入两个变量,**A**与**B**,返回它们相加的和。","Timelimit":"1","Memorylimit":"256","Input":"2 3","Output":"5"},{"Pid":2,"Difficulty":"困难","Title":"August","Content":"A<u>A</u>A*A*~~A~~","Timelimit":"1","Memorylimit":"64","Input":"1","Output":"1"}]}
🟢200Empty
Previous
Update synopsis
Next
Get all info of a given problem id
Built with