REST
Un servidor web es pot configurar com un servidor de recursos que s'accedeixen mijançant un conjunt de funcions "externes" o endpoints (API)
S'ensenya a
Entorn de treball
Crea un projecte amb Uv
uv init python-rest
cd python-restEl primer pas és instal·lar FastAPI.
uv add "fastapi[standard]"Primers passos
The app variable is the “instance” of the class FastAPI and will be the main point of interaction to create all your API.
=
return Estàs llegint una vista prèvia.
Inicia sessió amb Google per llegir la pàgina completa.
Inicia sessió amb GoogleAmb qualsevol compte de Google. Només et demanarem que acceptis les condicions del servei.