Skip to content

Expose the content of Debian/ParrotOS package via an API REST using Go's net/http library

Notifications You must be signed in to change notification settings

danterolle/packages-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParrotOS Packages API

Displaying JSON files is easily done using a web server, such as NGINX. This API, once synchronized with the packages-filter output, can instead be useful to show a single package, choosing the branch, the architecture and of course the package name.

Run it locally

You can try this program by running it in its interpreter mode via go run main.go or build it with go build -o packages-api

Then just make a GET request to the following address, as in the example: http://localhost:8080/packages?branch=main&arch=amd64&package=nginx, or just use cURL or Postman.

Options

The options for branch and arch (architecture) are:

branch = main, contrib, non-free

arch = amd64, arm64, armhf, i386

About

Expose the content of Debian/ParrotOS package via an API REST using Go's net/http library

Resources

Stars

Watchers

Forks

Packages

No packages published