Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 24, 2022 10:02 pm GMT

Changelog 0020 Data filtering, search & replace, RegExp, and more

Hello, API World! Were back with a new release of HTTPie for Web&Desktop, the API testing client that youll enjoy using. Last time, we hinted at additional tools for navigating and processing data. And thats been our theme for this release. Check out what we shipped in v2022.15.0

Summary

  • Data filtering Filter, transform and analyze JSON, XML, and HTML.
  • RegExp support Level up your search powers.
  • Search & replace Edit the request body text the smart way.
  • Other improvements Tweaks and fixes for an improved experience.
  • Teams & collaboration - Help us build the best collaborative experience.

Filter, transform and analyze structured data

Weve recently introduced text search to help you navigate large messages. Text search is available everywhere in the app as a universal way to navigate textual content.

When talking to APIs, though, you often deal with structured data like JSON, XML, and HTML. The explicit structure of these formats unlocks additional, more powerful ways of navigating and processing the data they contain.

In this release, we focused on taking advantage of that and added the ability to filter structured formats using various query languages. With filtering, you can quickly analyze, transform, and selectively extract data from structured documents without leaving HTTPie.

Filter

The following data formats and query languages are now available:

Data formatQuery language
JSONJSONPath
XMLXPath
HTMLXPath

Activate the filter field via a keyboard shortcut when the textarea is focused (macOS: F; Windows & Linux: F) or use the Filter item in the panels menu.

Data filtering is available everywhere where structured data can appear: in the preview and the request and response panels. To filter the request body data youre editing, open the preview panel and activate the filter there. The preview shows the effective request body with all variables already substituted, which allows more robust filtering.

Data filtering and text searching are independent features. You can, for example, filter a massive JSON response and still search inside the filtered output. To do that, simply open both the filter field (F) and the text search field (F).

This feature is part of a theme of making data easy to process and digest, and well continue to add more ways to transform and visualize data.

Upgrade your searches through RegExp

Regular expressions (aka RegExp) are a powerful tool for searching for patterns in text, and now you can use them in HTTPie as well.

RegExp search

Search & replace in the request body

Any request body should be comfortably editable directly in HTTPie, no matter how big. The new ability to search & replace is another step in that direction!

Replace

Activate the search field via a keyboard shortcut when the textarea is focused (macOS: F; Windows & Linux: F), and check out the new replacing options. Either replace the occurrences one by one or all at once up to you!

When searching using a RegExp, you can reference matching groups using the dollar-group-number syntax, where $0 references the whole match, $1 is the first group, etc.

Other improvements and bug fixes

  • When the response body preview is active, and you invoke search or filter, we automatically turn the preview off so you can operate on the raw body.
  • The app now uses dark mode for the UI by default. No worries, you can still change it back to the system or light one via the settings (,) if thats what you prefer.
  • All keyboard shortcuts would repeat during a long press. Weve now streamlined it so that, for example, holding results only into one request.
  • Now we warn you when you reach or approach the maximum variable name character limit.
  • Weve fixed a bug that sometimes led to 100% CPU usage with many tabs open.

Help wanted: teams and collaboration

Like with delicious pies, we believe the magic of HTTPie can be best experienced when shared with others.

Weve been heads down working on a multiplayer mode for a while now. Teams and collaboration are some of the most exciting and requested features on our roadmap. We cant wait to see what shape theyll take and all the opportunities they unlock for our users.

Teams and collaboration

If youre as excited as we are, or the opposite, wed love to talk to you! We want to ensure were building the right thing, and your help would be greatly appreciated & swag-rewarded!

As a start, you can help us by completing a quick survey. Then, if youre up for it, wed be delighted to interview you over Zoom.

Get in touch, and help shape the best collaborative API experience!

Happy API testing, and see you again soon!


Original Link: https://dev.to/pie/changelog-0020-data-filtering-search-replace-regexp-and-more-4ffp

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To