POST вместо GET в /send_student_answers #2

Open
opened 4 years ago by w2 · 0 comments
w2 commented 4 years ago
Owner

7fa10a715a/main.py (L87)

@app.get("/send_student_answers")
def send_student_answers(student_answers: str):

Ответы довольно старые, но я полагаю, что очень сильно ситуация не поменялась
https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers

поэтому здесь, видимо, нужно использовать POST (или PUT, чтобы показать мастерское владение http) вместо GET и пересылать ответы в теле запроса.

https://git.iamonlyherefortheicecream.ml/DIWHY/json_quiz/src/commit/7fa10a715aaa75b9f164932e5f8aad92ba21c9b8/main.py#L87 ```python @app.get("/send_student_answers") def send_student_answers(student_answers: str): ``` Ответы довольно старые, но я полагаю, что очень сильно ситуация не поменялась https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers поэтому здесь, видимо, нужно использовать POST (или PUT, чтобы показать мастерское владение http) вместо GET и пересылать ответы в теле запроса.
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: DIWHY/json_quiz#2
Loading…
There is no content yet.