APIs Flashcards

1
Q

What is an API?

A

A set of commands, functions, protocols, and objects that programmers can use to create software or interact with an external system.

It provides developers with standard commands for performing common operations so they do not have to write the code from scratch.

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

What does an API documentation consist of?

A

Describes how you can interact with the chosen API.

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

What is cURL?

A

A way of making an HTTP request through the command line.

It’s a tool to transfer data from or to a server, using one of the supporting protocols.

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

What does the question mark after BTCUSD denote? : $ curl https://apiv2.bitcoinaverage.com/indices/global/history/BTCUSD?

A

The question mark denotes the beginning of your parameters

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

How does an API request happen?

A

Your server makes a request via the API or the interface to somebody else’s server and you’re passing in some parameters as inputs. And their server interacts with their database in order to grab the relevant piece of data that you need based off your request and your parameters.
Once it’s gotten that data then it sends it back through the response and you will end up with that data you wanted from their database.

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

What are the two tiers of APIs?

A
  1. APIs that are accessible to the public.

2. APIs that are only accessible internally.

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