Skip to content
Showcasing bash with jq by creating statistics based on the contents a dummy blog engine
TSQL Java Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

How to Bash and jq: generate statistics for a REST API

This repository contains a dummy blog engine that publishes the following REST endpoints:

  • http://localhost:8080/posts?pageNumber=<num>: List metadata for all posts in a paginated list: ID, title and tags.
  • http://localhost:8080/posts/<post_id>: Get all details regarding a post, including its full text content.

The script scrapes data from these endpoints to calculate the percentage of bash related content.

Walkthrough for the script


  • Start blog engine: mvn spring-boot:run
  • Run script: ./
You can’t perform that action at this time.