Sign inSign up

thecampagnards/jq-api

By thecampagnards

Updated over 5 years ago

This web service parse an url with a jq query.

Image
0

1.6K

thecampagnards/jq-api repository overview

JQ-API

Build Status Go Report Card

This web service get a json from an url then parse it with jq (check https://github.com/stedolan/jq). We use it for rundeck which accept specific json format.

Installation

Docker image available here https://hub.docker.com/r/thecampagnards/jq-api/. Run the service with this command:

docker run -p 8080:8080 thecampagnards/jq-api

Usage

Api params, can be url encoded:

  • url: the url of your json
  • jq: the jq query

The headers, body and request type used to request the api will be used to request the url.

Example :

curl 'http://localhost:8080?jq=.tags&url=https://mydockerregistry.com/v2/alpine/tags/list'
> ["latest","v0.28.3"]

Tag summary

Content type

Image

Digest

Size

74.6 MB

Last updated

over 5 years ago

docker pull thecampagnards/jq-api