Skip to main content

Posts

Showing posts with the label API

API Questions

Question:  What is API Answer:  API stands for Application Programming Interface . It is a set of rules and protocols that allows different software applications to communicate with each other. APIs define the methods and data formats that developers can use to request and exchange information between applications, services, or systems. Question:  API Examples Answer:  API Call      Action GET /users      List all users  GET /users?name={username} Get user by username GET /users/{id} -   Get user by ID  GET /users/{id}/configurations    Get all configurations for user POST /users/{id}/configurations     Create - a new configuration for user DELETE /users/{id}/configurations/{id}   Delete configuration for user PATCH /users/{id}/configuration/{id}   Update configuration for use Question: Explain API Gateway Answer:  An API Gateway is a server or service that acts as an intermediary between an application or client and a collection of microservices or backend services. It serves as a c

API testing MCQ

Question : What does API stand for? Application Programming Interface Application Protocol Integration Application Program Interface Advanced Protocol Integration Application Programming Interface Question : Which HTTP method is used to retrieve data from the server? POST GET DELETE PUT GET Question : What HTTP status code indicates a successful API request? 200 400 500 201 200 Question : Which type of API does not require constant internet connectivity? SOAP API RESTful API GraphQL API WebSocket API SOAP API Question : In API testing, what is the purpose of a ''mock server''? To simulate the behavior of an actual server To secure the API from unauthorized access To store API documentation To optimize API performance To simulate the behavior of an actual server Question : Which format is commonly used for data exchange in RESTful APIs? JSON XML HTML YAML JSON Question : Which authentication method allows sending credentials with each API request? OAuth JWT Basic Authent