REST API Articles

Found 48 articles

Difference Between GraphQL and Rest

Shirjeel Yunus
Shirjeel Yunus
Updated on 12-Aug-2024 236 Views

If you want to develop and design APIs that can be used to exchange data over the internet, you can go for GraphQL and Rest. HTTP verbs are used by applications that Rest enables to exchange data with the server. GraphQL is used to define the ways in which client applications have to request data from a remote server. In this article, we will discuss the difference between GraphQL and rest. What is GraphQL? GraphQL is an open-source query language which uses APIs to make changes in the data. It uses a server-side runtime engine for the manipulation of the ...

Read More

How to Build a REST API with Fastify?

Mukul Latiyan
Mukul Latiyan
Updated on 22-Jun-2023 2K+ Views

Fastify is a framework that is mainly designed to do backend development in JavaScript. It is one of the lightest backend framework that one can work with, and it is one of the main reasons why it is preferred if you want to avoid the heavier node frameworks like Express and Hapi. Since its inception, multiple versions of Fastify have been released. In the latest version, we get the capability to even verify the incoming and outgoing requests as well as the request parameters. It might not come as a surprise that the people who developed Fastify claim that it ...

Read More

How to Implement Validation for RESTful Services with Spring

Satish Kumar
Satish Kumar
Updated on 28-Apr-2023 432 Views

As more and more applications move towards a RESTful architecture, it becomes increasingly important to ensure that the data being exchanged between the client and the server is valid. In this article, we will look at how to implement validation for RESTful services with Spring. What is Validation? Validation is the process of checking that the data being inputted or returned is valid and conforms to a set of predefined rules. These rules can be simple, such as checking that a field is not empty, or more complex, such as ensuring that a credit card number is valid. Why is ...

Read More

What is Rest Assured?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 08-Feb-2022 12K+ Views

Rest Assured is used to verify the REST APIs with the help of the Java library. Java library acts like a headless client to act upon the Rest web services. The libraries based on the Rest Assured library are also capable of validating the HTTP responses from the server.Response status code, body, message, headers, and so on can be tested with the Rest Assured library. It can be integrated with build tools like Maven, unit test frameworks like JUnit and TestNG. It has an efficient matching mechanism with which we can verify the expected results.Application Programming Interface or API acts ...

Read More

Disadvantages of Monitors in Postman

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 619 Views

Though Monitors in Postman have many features, it has some disadvantages as well. However, it is up to the end user if he should consider these features as drawbacks for Monitors.Disadvantages of monitors are listed below −Postman Monitors are non-functional provided the Postman server resides in the same server where we are. Thus it makes it difficult to determine the performance of a Collection in a different network.To solve this problem, we need to buy the Postman pro-version. On doing so, the Postman shall then give us another IP address with which we would be able to execute Monitors.Postman Monitors ...

Read More

Analyzing Monitor Results in Postman

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 206 Views

Once a scheduled Collection Monitor gets triggered, we have to analyze the results. Click on the Monitor name available under the Monitors tab.A new window opens in the browser that shall redirect to the Postman account that we are signed in.If we analyze the performance graph of the API in the above image, we see the red bars which depict tests have failed for the request. A green bar points to the fact that tests have passed. On hovering on a particular bar, we shall get date, time, Response time and the percentage of test result for a particular run.Also, ...

Read More

What are Postman Monitors?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 1K+ Views

Postman Monitors are used to ensure that the performance and the Response obtained from an API are being maintained properly. Monitors are scheduled on a regular interval of minutes, hours or weeks for the entire day.The steps to create a Postman Monitor are listed below −Step 1 − Click on the arrow symbol to the right of the Collection name. Then click on the Monitors tab.Step 2 − Click on the Create a Monitor button.Please Note −  we have to Sign in to a Postman account in order to create a Monitor.Step 3 − Provide an input to the Monitor ...

Read More

How to Generate Newman Reports on Jenkins using Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 436 Views

We can generate Newman reports on Jenkins. The reports obtained from Jenkins are a pictorial and organized representation of test execution results. These reports can also be shared with all the stakeholders of the project.Jenkins reports can be generated in several formats and can be controlled by adding different flags in the build commands. Also, it is necessary to specify the path where the reports shall be saved in build commands.The steps to generate Newman reports on Jenkins are listed below −As a prerequisite, Jenkins should be configured in the system. The details available in the link − https://www.tutorialspoint.com/jenkins/index.htm. Also, ...

Read More

How to Remove Unicode from Jenkins Console Output logs using Postman?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 607 Views

We can remove Unicode from Jenkins Console Output logs. To perform this, we should create a Collection with at least a single request. Along with it, we have to install Newman.Step 1 − Click on the arrow appearing to the right of the name of the Collection. After that, click on Share.Step 2 − SHARE COLLECTION pop-up shall open. Navigate to the Get public link tab and copy the link which is pointed out in the below image.Please note − The link obtained is specific to a particular user.Step 3 − Launch Jenkins and go to the Jenkins Job which ...

Read More

How to Run Postman Collection on Jenkins using Newman Commands?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 03-Aug-2021 540 Views

We can run Postman Collection on Jenkins using Newman commands. To achieve this, we should first have a Collection with a minimum one request and a test. Also, we should have Newman installed in our system.Step 1 − Click on the arrow to the right of the Collection name. Then click on the Share button.Step 2 − The SHARE COLLECTION1 window opens up. Go to the Get public link tab.Then copy the link which is highlighted in the below image.Please note − This link is unique to a user.Step 3 − Open Jenkins and navigate to the Jenkins Job below ...

Read More
Showing 1–10 of 48 articles
« Prev 1 2 3 4 5 Next »
Advertisements