MCPcopy Create free account

hub / github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB / functions

Functions168 in github.com/PacktPublishing/Full-Stack-FastAPI-React-and-MongoDB

FunctiongetServerSideProps
({ req, res })
chapter8/frontend/next-cars/pages/cars/add.jsx:10
FunctiongetStaticPaths
()
chapter8/frontend/next-cars/pages/cars/[id].jsx:2
FunctiongetStaticProps
({ params: { id } })
chapter8/frontend/next-cars/pages/cars/[id].jsx:13
Functionget_sample
(n: int, request: Request)
chapter9/backend/routers/cars.py:59
FunctionhandleChangeBrand
(ev)
chapter6/frontend/src/pages/Cars.jsx:16
FunctionhandleChangePage
(ev)
chapter6/frontend/src/pages/Cars.jsx:22
FunctionhandleDelete
()
chapter6/frontend/src/pages/Car.jsx:36
FunctionhandleForm
(e)
chapter9/frontend/src/components/Report.jsx:9
FunctionhandleReset
(e)
chapter6/frontend/src/pages/NewCar.jsx:80
FunctionhandleSubmit
(e)
chapter8/frontend/next-cars/pages/cars/add.jsx:30
FunctionhandleSubmit
(e)
chapter8/frontend/next-cars/pages/account/login.jsx:13
Functionhinted_car_id
(id:int)
chapter3/chapter3_path.py:12
Functionlist_all_cars
( request: Request, min_price: int = 0, max_price: int = 100000, brand: Optional[str] = None,
chapter7/backend/routers/cars.py:18
Functionlist_all_cars
( request: Request, min_price: int=0, max_price:int=100000, brand: Optional[str] = None,
chapter5/backend/routers/cars.py:14
Functionlist_all_cars
( request: Request, min_price: int = 0, max_price: int = 100000, brand: Optional[str] = None,
chapter8/backend/routers/cars.py:48
Functionlist_all_cars
( request: Request, min_price: int = 0, max_price: int = 100000, brand: Optional[str] = None,
chapter9/backend/routers/cars.py:23
Functionlogin
(request: Request, loginUser: LoginBase = Body(...))
chapter7/backend/routers/users.py:59
Functionlogin
(request: Request, loginUser: LoginBase = Body(...))
chapter8/backend/routers/users.py:59
Functionlogout
()
chapter7/frontend/src/components/Header.jsx:11
Functionme
(request: Request, userId=Depends(auth_handler.auth_wrapper))
chapter7/backend/routers/users.py:77
Functionme
(request: Request, userId=Depends(auth_handler.auth_wrapper))
chapter8/backend/routers/users.py:79
Functionmiddleware
(req)
chapter8/frontend/next-cars/middleware.js:4
Functionnew_car
(data: Dict = Body(...))
chapter3/chapter3_request_body.py:20
Functionnew_car_model
(car:InsertCar)
chapter3/chapter3_custom_status_code.py:22
Functionnew_car_model
(car: InsertCar, user: InsertUser, code: int = Body(None))
chapter3/chapter3_body2.py:20
FunctiononChange
(e)
chapter6/frontend/src/pages/NewCar.jsx:76
FunctiononChange
(event)
chapter6/frontend/src/pages/Car.jsx:19
FunctiononChangeHandler
chapter4/cars/src/App.js:18
FunctiononErrors
chapter7/frontend/src/components/NewCar.jsx:19
FunctiononErrors
(errors)
chapter7/frontend/src/components/Login.jsx:58
FunctiononFormSubmit
(data)
chapter7/frontend/src/components/NewCar.jsx:21
FunctiononFormSubmit
(data)
chapter7/frontend/src/components/Login.jsx:38
Functionpost_root
()
chapter3/chapter3_first_endpoint.py:10
Functionpredict
( brand: str = Body(...), make: str = Body(...), year: int = Body(...), cm3: int = Body(...),
chapter9/backend/routers/cars.py:132
Functionraw_fa_response
()
chapter3/chapter3_custom_status_code.py:15
Functionraw_request
(request:Request)
chapter3/chapter3_raw_request.py:6
Functionread_headers
(user_agent: str | None = Header(None))
chapter3/chapter3_header.py:6
Functionregister
(request: Request, newUser: UserBase = Body(...))
chapter8/backend/routers/users.py:19
FunctionreportWebVitals
chapter7/frontend/src/reportWebVitals.js:1
Functionreport_pipeline
(email, cars_number)
chapter9/backend/utils/report.py:5
Functionroot
(id)
chapter3/chapter3_path.py:6
Functionroot
()
chapter3/chapter3_first_endpoint.py:6
Functionsend_mail
( background_tasks: BackgroundTasks, cars_num: int = Body(...), email: str = Body(...), )
chapter9/backend/routers/cars.py:120
Functionshow_car
(id: str, request: Request)
chapter7/backend/routers/cars.py:68
Functionshow_car
(id: str, request: Request)
chapter5/backend/routers/cars.py:53
Functionshow_car
(id: str, request: Request)
chapter8/backend/routers/cars.py:138
Functionshutdown_db_client
()
chapter7/backend/main.py:39
Functionshutdown_db_client
()
chapter5/backend/main.py:40
Functionshutdown_db_client
()
chapter8/backend/main.py:51
Functionshutdown_db_client
()
chapter9/backend/main.py:56
Functionstartup_db_client
()
chapter7/backend/main.py:34
Functionstartup_db_client
()
chapter5/backend/main.py:34
Functionstartup_db_client
()
chapter8/backend/main.py:45
Functionstartup_db_client
()
chapter9/backend/main.py:46
FunctiontransformedUrl
(id)
chapter8/frontend/next-cars/components/Card.js:6
FunctionupdatePrice
()
chapter6/frontend/src/pages/Car.jsx:56
Functionupdate_task
( id: str, request: Request, car: CarUpdate = Body(...), userId=Depends(auth_handler.auth_wrap
chapter7/backend/routers/cars.py:75
Functionupdate_task
(id: str, request: Request, car: CarUpdate = Body(...))
chapter5/backend/routers/cars.py:59
Functionupdate_task
( id: str, request: Request, car: CarUpdate = Body(...), userId=Depends(auth_handler.auth_wrap
chapter8/backend/routers/cars.py:145
Functionupload
(file:UploadFile=File(...), brand:str=Form(...), model:str=Form(...))
chapter3/chapter3_form_data.py:5
Functionupload
(picture:UploadFile=File(...), brand:str=Form(...), model:str=Form(...))
chapter3/chapter3_upload.py:7
Functionuser
(id:int)
chapter3/chapter3_wrong_path_order.py:6
Methodvalid_email
(cls, v)
chapter7/backend/models.py:47
Methodvalid_email
(cls, v)
chapter8/backend/models.py:47
Methodvalidate
(cls, v)
chapter7/backend/models.py:16
Methodvalidate
(cls, v)
chapter5/backend/models.py:12
Methodvalidate
(cls, v)
chapter8/backend/models.py:16
Methodvalidate
(cls, v)
chapter9/backend/models.py:12
← previous101–168 of 168, ranked by callers