APIs Flashcards
Week 1.9 (6 cards)
1
Q
describe API
A
Application Programming Interface
- enables communication between software systems
- defines how requests and responses are exchanged
2
Q
key concepts of API
A
- endpoints
- HTTP methods
- Request/Response
3
Q
4 tools for API interaction
A
- postman - visual GUI-based API testing tool
- python ‘requests’ library - programmatic interaction
- browser - test GET requests directly
- command-line tools - cURL
4
Q
define cURL
A
- command-line tool for interacting with APIs
- supports all HTTP methods
- ideal for scripts and quick testing for API request
5
Q
describe JSON
A
JavaScript Object Notation
- lightweight format for data exchange
- key-value pairs
- found in many modern APIs
6
Q
working with JSON
A
- most programming languages have libraries for working with JSON
- convert JSON to native data structures for easy manipulation
- access data using keys or iterate over arrays for processing
- convert native data back to JSON for storage or API requests