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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

key concepts of API

A
  1. endpoints
  2. HTTP methods
  3. Request/Response
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

4 tools for API interaction

A
  1. postman - visual GUI-based API testing tool
  2. python ‘requests’ library - programmatic interaction
  3. browser - test GET requests directly
  4. command-line tools - cURL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

describe JSON

A

JavaScript Object Notation
- lightweight format for data exchange
- key-value pairs
- found in many modern APIs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly