What is API, how does it work, typical API methods, status codes and implementation.
Size: 572.36 KB
Language: en
Added: May 16, 2024
Slides: 13 pages
Slide Content
What is API
What is API? Weather API /DallasTemperature GET /CityTemperature POST URL: https://api.weatherapi.com/DallasTemperature Method: GET { “celcius”: 25, “fahrenheit”: 77 }
What is API? Weather API /DallasTemperature GET /CityTemperature POST URL: https://api.weatherapi.com/ CityTemperature Method: POST Body: {“city”: “New-York”} { “celcius”: 15, “fahrenheit”: 59 }
Types of API requests
HTTP response status codes
Client - Server Application API (Server) Web-browser (client) password username Log in
Client - Server Application API (Server) Web-browser (client) Welcome John123 Log in (click)