There was an error while loading. Please reload this page.
1 parent f0d0bfd commit 48a85feCopy full SHA for 48a85fe
1 file changed
README.md
@@ -1,3 +1,20 @@
1
# Open-CP API
2
3
-The backend of Open-CP
+- `/api`
4
+ - 🔐 `/auth`
5
+ - `POST /token` → Generate token
6
+ - 📘 `/problemset`
7
+ - `GET /` → Get all problems
8
+ - `POST /` → Create a problem
9
+ - `GET /<problem_id>` → Get problem
10
+ - `PATCH /<problem_id>` → Update problem
11
+ - `DELETE /<problem_id>` → Delete problem
12
+ - `GET /<problem_id>/submissions` → Get submissions
13
+ - `GET /<problem_id>/submissions/<id>` → Get a submission
14
+ - `POST /submit/<problem_id>` → Submit code
15
+ - 👤 `/users`
16
+ - `GET /` → Get all users
17
+ - `POST /` → Create user
18
+ - `GET /<user_id>` → Get user
19
+ - `PATCH /<user_id>` → Update user
20
+ - `DELETE /<user_id>` → Delete user
0 commit comments