Untitled spreadsheet - Sheet1 (1) Flashcards

1
Q

What is REST?

A

REST stands for Representational State Transfer. It is an architectural style for networked hypermedia applications, often used in web services development.

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

What does API stand for?

A

API stands for Application Programming Interface. It’s a set of rules and protocols for building and interacting with software applications.

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

What is a RESTful API?

A

A RESTful API is an API that follows the principles of REST. It is designed to take advantage of existing protocols, often using HTTP methods to operate on resources.

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

What are the HTTP methods commonly used in a RESTful API?

A

The common HTTP methods used in a RESTful API are GET, POST, PUT, PATCH, DELETE.

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

What does the GET method do in a RESTful API?

A

The GET method is used to retrieve information from the given server using a given URI.

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

What does the POST method do in a RESTful API?

A

The POST method is used to send data to a server to create a new resource.

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

What does the PUT method do in a RESTful API?

A

The PUT method is used to update existing resource or create a new one if it does not exist.

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

What does the PATCH method do in a RESTful API?

A

The PATCH method is used to partially update a resource.

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

What does the DELETE method do in a RESTful API?

A

The DELETE method is used to delete a resource from the server.

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

What is a URI in context of a RESTful API?

A

URI stands for Uniform Resource Identifier. In RESTful APIs, it is used to identify resources.

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

What is a resource in a RESTful API?

A

A resource in a RESTful API is an abstraction of a piece of information, such as a document or a service, identifiable by a URI.

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

What is the status code for a successful GET request?

A

The status code for a successful GET request is 200 OK.

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

What is the status code for a successful POST request?

A

The status code for a successful POST request is 201 Created.

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

What is the status code for a successful DELETE request?

A

The status code for a successful DELETE request is 200 OK or 204 No Content if the response body is empty.

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

What does the status code 404 mean?

A

The status code 404 means Not Found. The server could not find the requested resource.

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

What does the status code 400 mean?

A

The status code 400 means Bad Request. The server could not understand the request due to invalid syntax.

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

What does the status code 500 mean?

A

The status code 500 means Internal Server Error. The server encountered an unexpected condition that prevented it from fulfilling the request.

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

What is idempotence in RESTful APIs?

A

Idempotence means that multiple identical requests should have the same effect as a single request. GET, PUT, DELETE methods are idempotent.

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

What is safety in RESTful APIs?

A

Safety refers to the characteristic of an operation not modifying resources. The GET method is safe.

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

What does CRUD stand for in RESTful API context?

A

CRUD stands for Create, Read, Update, Delete. It represents the four basic functions of persistent storage in RESTful APIs.

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

What is a payload in a RESTful API?

A

A payload in a RESTful API is the data sent with a HTTP request or received in the response.

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

What does HATEOAS mean in the context of RESTful APIs?

A

HATEOAS stands for Hypermedia as The Engine of Application State. It is a principle that allows client interact with a server entirely through hypermedia provided dynamically by application servers.

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

What is the Richardson Maturity Model?

A

The Richardson Maturity Model is a way to grade your API according to the constraints of the REST architecture. It has three levels: Level 0 (The Swamp of POX), Level 1 (Resources), Level 2 (HTTP Verbs), and Level 3 (Hypermedia Controls).

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

What is REST API versioning?

A

REST API versioning is the process of managing different versions of an API. It helps to make changes to APIs without breaking the compatibility with older clients.

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

What are some ways to implement REST API versioning?

A

Some ways to implement REST API versioning include URL versioning, parameter versioning, header versioning, and media type versioning.

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

What are some common media types used in REST APIs?

A

Some common media types used in REST APIs are application/json, application/xml, text/html, and text/plain.

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

What is content negotiation in RESTful APIs?

A

Content negotiation is the process where the client and server interact to determine the best representation of a resource, often based on the ‘Accept’ header of the HTTP request.

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

What is basic authentication in REST APIs?

A

Basic authentication is a method used to send a user name and password with a request in a REST API. It is often Base64 encoded.

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

What is OAuth in the context of REST APIs?

A

OAuth (Open Authorization) is an open standard for token-based authentication and authorization in REST APIs. It allows third-party services to exchange your information without you having to give away your password.

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

What is JWT in the context of REST APIs?

A

JWT (JSON Web Token) is a JSON-based open standard for creating access tokens that assert some number of claims.

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

What does the acronym CORS stand for?

A

CORS stands for Cross-Origin Resource Sharing. It is a mechanism that allows many resources (e.g., fonts, JavaScript, etc.) on a web page to be requested from another domain outside the domain from which the resource originated.

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

What is the purpose of OPTIONS method in REST APIs?

A

The OPTIONS method in REST APIs is used to describe the communication options for the target resource. It’s often used for CORS preflight requests.

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

What are response headers in a REST API?

A

Response headers are the headers that the server sends in response to a HTTP request. They define the operating parameters of an HTTP transaction.

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

What is the role of ‘Accept’ header in a REST API?

A

The ‘Accept’ header in a REST API is used by HTTP clients to tell the server what content types they’ll accept. The server will then send back a response, which will include a Content-Type header telling the client what the content type of the returned content actually is.

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

What is the role of ‘Content-Type’ header in a REST API?

A

The ‘Content-Type’ header in a REST API is used to indicate the media type of the resource. In responses, a Content-Type header tells the client what the content type of the returned content actually is.

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

What is pagination in REST APIs?

A

Pagination in REST APIs is a technique to effectively load and display a large number of resources by dividing them into manageable chunks or pages.

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

What is filtering in REST APIs?

A

Filtering in REST APIs is a way to request only those resources that meet certain criteria, reducing the amount of data that needs to be sent.

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

What is sorting in REST APIs?

A

Sorting in REST APIs allows clients to specify the order in which resources are returned, typically by means of a query parameter.

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

What is rate limiting in REST APIs?

A

Rate limiting in REST APIs is a technique for limiting network traffic. It sets a limit on how many requests a client can make to the API within a certain time period.

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

What is API caching?

A

API caching is the practice of storing an API’s response data in order to satisfy future requests faster.

41
Q

What is ETag in HTTP?

A

An ETag (entity tag) in HTTP is a identifier for a specific version of a resource. It can be used to determine whether the resource has changed since the last request.

42
Q

What is API throttling?

A

API throttling is the process of limiting the number of requests to an API to prevent overuse of resources.

43
Q

What is REST API mocking?

A

REST API mocking is the process of simulating the behavior of a real API for testing purposes.

44
Q

What is a REST API client?

A

A REST API client is a tool that can be used to build and test requests to a REST API.

45
Q

What is SOAP?

A

SOAP stands for Simple Object Access Protocol. It is a messaging protocol, used primarily for distributed computing environments. SOAP is known for its robustness, which comes from its strong typing, formal contracts, and extensive standards support.

46
Q

What is the main difference between REST and SOAP?

A

The main difference between REST and SOAP is that REST is a architectural style mostly used for web services, while SOAP is a protocol with a set of rules to be strictly followed.

47
Q

What is a RESTful web service?

A

A RESTful web service is a service built on the REST architecture that can be used over the network.

48
Q

What is a query parameter in RESTful APIs?

A

A query parameter in RESTful APIs is a part of a uniform resource identifier (URI) used to provide a specific query for a set of resources.

49
Q

What is an endpoint in a RESTful API?

A

An endpoint in a RESTful API refers to a specific URL where an API can be accessed.

50
Q

What is JSON?

A

JSON stands for JavaScript Object Notation. It is a lightweight data-interchange format that is easy to read and write.

51
Q

What is XML?

A

XML stands for eXtensible Markup Language. It is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.

52
Q

How can errors be handled in REST APIs?

A

Errors can be handled in REST APIs by returning the right HTTP status codes in the response, along with clear error messages in the response body.

53
Q

What is a status code in a REST API?

A

A status code in a REST API is a three-digit integer result code of the server’s attempt to understand and satisfy the client’s request.

54
Q

What does ‘stateless’ mean in REST?

A

Stateless’ in REST means that the server does not remember anything about the client who uses the API. Each request from a client to server must contain all the information needed to understand the request.

55
Q

What is the use of ‘HEAD’ method in HTTP?

A

The ‘HEAD’ method in HTTP is used to ask for a response identical to that of a GET request, but without the response body.

56
Q

What are the principles of REST?

A

The principles of REST are: Client-Server, Stateless, Cacheable, Uniform Interface, Layered System, and Code-On-Demand (optional).

57
Q

What is HTTP?

A

HTTP stands for Hypertext Transfer Protocol. It is a protocol used for transmitting hypermedia documents, such as HTML.

58
Q

What is HTTPS?

A

HTTPS stands for Hypertext Transfer Protocol Secure. It is the secure version of HTTP, where communications are encrypted by Transport Layer Security (TLS), or its predecessor, Secure Sockets Layer (SSL).

59
Q

What are path parameters in RESTful APIs?

A

Path parameters in RESTful APIs are variables embedded in the URL path of a resource URI. They can be used to express a relationship between resources.

60
Q

What is a header in a RESTful API?

A

A header in a RESTful API is a part of the HTTP request or response, providing metadata for the HTTP message.

61
Q

What is the use of a ‘TRACE’ method in HTTP?

A

The ‘TRACE’ method in HTTP is used for diagnostic purposes. It provides a way to see what’s being received at the other end of the request chain and use that data for testing or diagnostic information.

62
Q

What is API testing?

A

API testing is a type of software testing that involves testing application programming interfaces (APIs) directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.

63
Q

What is a 301 HTTP status code?

A

A 301 HTTP status code means that the requested resource has been permanently moved to a new location.

64
Q

What is a 302 HTTP status code?

A

A 302 HTTP status code means that the requested resource has been temporarily moved to a new location.

65
Q

What is a 303 HTTP status code?

A

A 303 HTTP status code means that the server is redirecting the user agent to a different resource, as defined by the Location header. It is used after a successful POST request.

66
Q

What is a 304 HTTP status code?

A

A 304 HTTP status code means that the resource has not been modified and the client should use the cached version.

67
Q

What is a 400 HTTP status code?

A

A 400 HTTP status code means Bad Request. The request could not be understood by the server due to malformed syntax.

68
Q

What is a 401 HTTP status code?

A

A 401 HTTP status code means Unauthorized. The request requires user authentication.

69
Q

What is a 402 HTTP status code?

A

A 402 HTTP status code means Payment Required. It’s not currently used and is reserved for future use.

70
Q

What is a 403 HTTP status code?

A

A 403 HTTP status code means Forbidden. The server understood the request, but is refusing to fulfill it.

71
Q

What is a 405 HTTP status code?

A

A 405 HTTP status code means Method Not Allowed. The method specified in the request is not allowed for the resource identified by the request URI.

72
Q

What is a 406 HTTP status code?

A

A 406 HTTP status code means Not Acceptable. The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.

73
Q

What is a 408 HTTP status code?

A

A 408 HTTP status code means Request Timeout. The client did not produce a request within the time that the server was prepared to wait.

74
Q

What is a 409 HTTP status code?

A

A 409 HTTP status code means Conflict. The request could not be completed due to a conflict with the current state of the resource.

75
Q

What is a 410 HTTP status code?

A

A 410 HTTP status code means Gone. The requested resource is no longer available at the server and no forwarding address is known.

76
Q

What is a 415 HTTP status code?

A

A 415 HTTP status code means Unsupported Media Type. The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.

77
Q

What is a 429 HTTP status code?

A

A 429 HTTP status code means Too Many Requests. The user has sent too many requests in a given amount of time.

78
Q

What is a 501 HTTP status code?

A

A 501 HTTP status code means Not Implemented. The server does not support the functionality required to fulfill the request.

79
Q

What is a 502 HTTP status code?

A

A 502 HTTP status code means Bad Gateway. The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.

80
Q

What is a 503 HTTP status code?

A

A 503 HTTP status code means Service Unavailable. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.

81
Q

What is a 504 HTTP status code?

A

A 504 HTTP status code means Gateway Timeout. The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server it accessed in attempting to complete the request.

82
Q

What is a request method in RESTful APIs?

A

A request method in RESTful APIs refers to an HTTP method or verb that the client sends to the server to access a resource, such as GET, POST, PUT, DELETE, etc.

83
Q

What is server-side scripting?

A

Server-side scripting is a technique used in web development which involves running scripts on a web server to produce a response that is customized for each user’s request.

84
Q

What is client-side scripting?

A

Client-side scripting is a type of coding in which the source code is executed or interpreted by browsers. The source code is transferred from the web server to the user’s computer over the internet and run directly in the browser.

85
Q

What are cookies in the context of HTTP?

A

In the context of HTTP, cookies are small pieces of data stored on the user’s computer by the web browser while browsing a website. They are used to remember stateful information.

86
Q

What is a session in the context of HTTP?

A

In the context of HTTP, a session refers to a series of related message exchanges. HTTP being stateless, sessions allow storing information about the user across multiple requests.

87
Q

What are request headers in a REST API?

A

Request headers in a REST API are part of the HTTP request, providing metadata, such as the host, user agent, content type, etc.

88
Q

What is a REST API proxy?

A

A REST API proxy is an entity that sits between the client and the actual server. It accepts client requests, forwards them to the server, and returns the server’s responses back to the client.

89
Q

What is SSL/TLS in the context of REST APIs?

A

SSL/TLS in the context of REST APIs refers to Secure Sockets Layer/Transport Layer Security, cryptographic protocols designed to provide communications security over a computer network.

90
Q

What is a REST API wrapper?

A

A REST API wrapper is a set of programming instructions and standards for accessing a RESTful web service.

91
Q

What is a REST API framework?

A

A REST API framework is a set of tools and libraries that help developers to build and maintain RESTful web services more efficiently.

92
Q

What is REST API documentation?

A

REST API documentation is a detailed data model reference with all the endpoints and operations. It describes what functionality the API offers and how to use it.

93
Q

What are REST API best practices?

A

REST API best practices include using HTTP methods correctly, using proper HTTP status codes, error handling, security considerations, versioning, and providing good API documentation.

94
Q

What is API Gateway?

A

API Gateway is a server that acts as an API front-end, receives API requests, enforces throttling and security policies, passes requests to the back-end service and then passes the response back to the requester.

95
Q

What are REST API design principles?

A

REST API design principles include stateless operations, cacheability, a client-server architecture, a uniform interface, and a layered system.

96
Q

What is REST API integration?

A

REST API integration is the process of linking such an API into your existing infrastructure, which allows different software to communicate with each other, even if they were not originally intended to interact.

97
Q

What are REST API specifications?

A

REST API specifications provide a detailed explanation of how the API works, how to use it, and what to expect from it. They include information about endpoints, request methods, request parameters, response codes, and response examples.

98
Q

What is GraphQL?

A

GraphQL is a query language for APIs and a runtime for executing those queries with your existing data. It provides an efficient and powerful alternative to REST.

99
Q

What is the difference between REST and GraphQL?

A

The main difference between REST and GraphQL is how data is requested and delivered. In REST, you would have to make multiple requests to different endpoints to fetch related pieces of data. With GraphQL, you send a single query to the server that includes the specific data requirements, and it returns exactly the data you asked for.