APIs - paper 2 Flashcards

1
Q

what are APIs

A

an application programming interface is a set of functions and protocols that clients can use
- a server - side web API is a set of web services or web resources to enable programmers to build web applications
- mashups are multiple APIs

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

limits of HTTP communication

A
  • client has to request data from the server
  • if too much time passes between between establishing a socket connection between client and web server, the server drops the connection to conserve its resources, and returns an error message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

web CRUD applications

A

NAME → HTTP request method → SQL command

Create → POST → INSERT
Retrieve → GET → SELECT
Update → PUT → UPDATE
Delete → DELETE → DELETE

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

what is REST

A

Representational State Transfer is an architectural style which determines how systems communicate with each other

  • typically REST uses HTTP request methods to interact with online databases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

examples of APIs

A

JSON - similar to python dictionary
XML - similar format to html files

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

advantages of JSON

A
  • more compact so requires less storage, so quicker to transmit and process
  • easier to read, write, and maintain
  • data clearly defined as objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

disadvantages of JSON

A
  • only works with a limited range of data types
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

advantages of XML

A
  • any data type allowed, so more flexible
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

disadvantages of XML

A

expensive use of tags makes it hard to follow

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

describe what thin- client computing is

A
  • processing is carried out on a server
How well did you know this?
1
Not at all
2
3
4
5
Perfectly