Skip to content

Commit

Permalink
[feat/#69] Docs: add curl examples
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Aug 26, 2023
1 parent c0636a5 commit 2edc238
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions resources/images/control-ubuntu/server/res/curl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class UsersModel(BaseModel):
id: int
user_id: str
password: str
name: str
user_num: int
role: int

curl -X POST \
http://localhost:8003/professor/ \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"id": 0,
"user_id": "ryann0",
"password": "qwer123!",
"name": "금나교수",
"user_num": 9123,
"role": 2
}'

curl -X POST \
http://localhost:8003/lecture/ \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"lecture_id": 2110000001,
"title": "프입",
"room": 1,
"professor_id": 0
}'

0 comments on commit 2edc238

Please sign in to comment.