jq-api

command module
v0.0.0-...-68c8ea3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

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"]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL