HTTP
- Hyper Text Transfer ProtocolHTTPS
- Hyper Text Transfer Protocol SecureGET
- Get data from the serverPOST
- Send data to the serverPATCH
- Used for updating existing values in the databasePUT
- used to update the existing dataDELETE
- Used o delete items in the db
1. Free Code Camp - YouTube
- GET used to get information from the API Eg: localhost/home
- Path parameter Eg: localhost/get-std-details/2. Here 2 is student id
- Query parameter Eg: localhost/get-by-name?name=nick. It search for the name nick. It is not case sensitive when calling from direct url and it is sensitive with postman call.
- Get by both PathParm(pp) and Query Parm(QP) Eg: localhost/get-by-pp-qp/1?name=kali
- Post method used to upload data to the database through API. It values are entered through the body.
- PUT used to update the existing data.
- DELETE used to delete the data.
- To run this script in cmd
uvicorn file_name:app --reload