Today is day 5 of 29 Days of Open Source Alternatives. You can find the list of most of the projects we're going to cover here. This part of the series will cover Development Tools and Platforms
APIs, or Application Programming Interfaces, allow for communication between different software systems and services, forming the necessary bridge in applicates used daily in industries ranging from banking to entertainment. Because we depend on technology so much, it's important to make sure we're testing to make sure everything works.
API testing serves four main purposes: functionality, performance, security, and integration. Each category focuses on looking at different parts of the API to make sure it is functioning correctly under normal and extreme circumstances. Using API testing has a lot of benefits, including:
Enhanced System Dependability: Checking APIs allows you to discover hidden bugs, eliminate crashes, and minimize unwanted consequences caused by incorrect implementations.
Optimized Performance: Ongoing surveillance can help to identify bottlenecks and opportunities for improvement, providing better resource utilization and smoother experiences for end-users.
Streamlined Ecosystem Management: Coordinated API testing encourages uniform procedures, policies, and expectations, providing a better experience for developers, testers, and teams.
Popular API testing tools include Postman, SoapUI, Paw, Advanced REST Client (ARC), and (the open source alternative) Hoppscotch.
If you're interested in testing out some other open source API tools, you can check out my API Development Tools list.
Spotlight: Hoppscotch
Hoppscotch is a lightweight, web-based API development suite. It was built from the ground up with ease of use and accessibility in mind providing all the functionality needed for API developers with minimalist, unobtrusive UI.
Hoppscotch makes it quick and easy to test your APIs. It honestly took me under five minutes to get started with my first request.
I'm fascinated by how the product has grown from postwoman to Hoppscotch. You can check out the post from @liyasthomas from almost 5 years ago:
Hoppscotch's platform allows you to test sending HTTP requests and view responses. Some of the features include:
Request Methods: Supports all HTTP methods, enabling comprehensive testing scenarios.
Real-time Collaboration: Share your API requests with teammates in real-time, fostering collaboration.
WebSocket Testing: Offers support for WebSocket testing.
Authentications & Headers: Integrate various authentication methods, including OAuth 2.0, and customize headers for detailed testing.
Pre-request Scripts & Tests: Write JavaScript to execute before requests or to validate responses, mirroring the capabilities of more complex environments.
Just a note to say that in terms of pricing, Hoppscotch offers free (forever) Community plans as well as enterprise plans with more features and support.
Getting Started with API Testing
Let's walk through an example. First, go to https://hoppscotch.io/. If you haven't used it before, you'll see their default API there.
We're going to test the OpenSauced API to get a list of featured repository insight pages.
For the API endpoint, add:
https://api.opensauced.pizza/v2/insights/featured
Next, we're going to need to add some query parameters.
Parameter 1: page, Value 1: 1
Parameter 2: limit, Value 2: 10
Parameter 3: orderDirection, Value 3: ASC
Parameter 4: range, Value 4: 30
Parameter 5: prev_days_start_date, Value 5: 0
This is what it will look like:
Once you've added those Query Parameters, you're ready to hit Send. If your request is successful, you'll see a JSON response like this:
We'll be back with another post in the 29 Days of OSS Alternatives tomorrow, but if you want to stay up-to-date with OpenSauced and get more valuable information about open source, sign up for our newsletter today.