Building Python Web APIs with FastAPI by Abdulazeez Abdulazeez Adeshina

Building Python Web APIs with FastAPI by Abdulazeez Abdulazeez Adeshina

Author:Abdulazeez Abdulazeez Adeshina
Language: eng
Format: epub
Publisher: Packt Publishing Ltd.
Published: 2022-07-15T00:00:00+00:00


In this code block, we have modified the original model class to become a SQL table class.

Let’s add another SQLModel class that’ll be used as the body type during UPDATE operations:class EventUpdate(SQLModel):

title: Optional[str]

image: Optional[str]

description: Optional[str]

tags: Optional[List[str]]

location: Optional[str]

class Config:

schema_extra = {

"example": {

"title": "FastAPI Book Launch",

"image": "https:

//linktomyimage.com/image.png",

"description": "We will be discussing

the contents of the FastAPI book in

this event. Ensure to come with your

own copy to win gifts!",

"tags": ["python", "fastapi", "book",

"launch"],

"location": "Google Meet"

}

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
The Kubernetes Operator Framework Book by Michael Dame(7288)
Web Development with Julia and Genie by Ivo Balbaert & Adrian Salceanu(5733)
State Management with React Query by Daniel Afonso(3222)
Eleventy by Example by Robinson Bryan;(3156)
Architecting Vue.js 3 Enterprise-Ready Web Applications by Solomon Eseme(2853)
Digital Marketing with Drupal by José Fernandes(2811)
Building Python Web APIs with FastAPI by Abdulazeez Abdulazeez Adeshina(2755)
Becoming an Enterprise Django Developer by Michael Dinder(1223)
Building Python Web APIs with FastAPI: A fast-paced guide to building high-performance, robust web APIs with very little boilerplate code by Abdulazeez Abdulazeez Adeshina(1159)
Operator Training Simulator Handbook by Joseph Philip(1129)
Practical WebAssembly: Explore the fundamentals of WebAssembly programming using Rust by Sendil Kumar Nellaiyapen(1052)
Google Workspace User Guide: A Practical Guide to Using Google Workspace Apps Efficiently While Integrating Them With Your Data by Balaji Iyer(1042)
Hands-on Cloud Analytics with Microsoft Azure Stack: Transform Your Data to Derive Powerful Insights Using Microsoft Azure by Prashila Naik(1023)
Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python by Andros Fenollosa(972)
State Management with React Query by Afonso Daniel;(939)
Modern Frontend Development with Node.js by Florian Rappl(905)
High Performance with Laravel Octane by R. Butti(894)
Kubernetes Design Patterns and Extensions by Onur Yilmaz(887)
JavaScript from Frontend to Backend by Unknown(792)
Building Data Science Applications with FastAPI by François Voron(759)