Advertisement
c32team

python question schema

Jun 19th, 2024
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Схема:
  2. from pydantic import BaseModel
  3.  
  4. class RequestSchema(BaseModel):
  5. user_id: str
  6. action: str
  7. is_bot: bool = False
  8.  
  9.  
  10. Запросы:
  11. http://localhost/?user_id=1&action=get&is_bot=0
  12. http://localhost/?user_id=2&action=5&is_bot=1
  13. http://localhost/?user_id=3&action=set_id
  14. http://localhost/?user_id=3&action=set_id&is_bot=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement