API/Postman Flashcards

1
Q

Challenges for rest API testing

A
  • api documentation
  • access to db
  • authorization overhead
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the difference between put and post methods

A

Post - creates a new record in the database
Put - changes records information in the database

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

Different method/requests types in rest API

A
  • post
  • put
  • patch
  • delete
  • head
  • options
  • get
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the difference between put and patch

A

Put - method of modifying recourses that updates the entire recourse/record
Patch - method of modifying recourses that updates partial data without modifying the entire data.

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

What’s the difference between rest API and GrqphQL

A

The core difference between GraphQL and Rest API is that graphQL is a specification, a query language, while REST is an architectural concept for network-based software

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

Status/response codes

A

1- hold on Request initiated by the browser is continuing
2
- here you go - success codes
3** - go away, unauthorized - redirection response
4** - you fd up - client errors
5** - I f
d up(server)- server error codes

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

API abbreviation

A

Application programming interface

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

REST abbreviation

A

Representational state transfer

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

GraphQl abbreviation

A

Graph Query Language

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

Importance of API testing

A
  • detect bugs earlier
  • It is critical for integration testing since API is used to communicate between different software systems
  • Time saving
  • cost efficient
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why postman

A
  • you can write tests
  • manipulate data
  • test API and graphQL
  • you can write commands
  • robust community and support
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Most common status codes

A

200 - Success/ok
301 - Permanent redirect(page moved to a new URL)
302 - temporary redirect
304 - not modified for caching purposes
400 - bad request
401 - unauthorized error
403 - forbidden
404 - not found
500 - internal server error
501 - not implemented

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

What is Basic Auth in Postman

A

It’s the basic authentication provided for HTTP user agents like browser to enter username and password

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

what is binary form in Post method

A

Post binary form designed to send information in the forma that is impossible to enter manually, like large csv files

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

what is the difference between authentication and authorization

A
  1. Authorization is a way of allowing or permitting someone, authentication is proving that something is genuine.
  2. Authentication comes first
  3. Authorization is open with permission, for authentication requires you to have a password.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the payload in postman

A

It’s the body of the request and response message

17
Q

what is a collection

A

it’s a way to group similar requests

18
Q

what is a pre-request script

A

helps you to execute JS scripts before request runs

19
Q

how postman variables are accessed

A

by using variable names
{ (variable name) }

20
Q

what is the meaning of the term environment in Postman

A

It’s a set of key-value pairs

21
Q

how do you remove local variables

A

Local variables are automatically removed after the tests have been executed