Skip to content

REST API for checking what packages are installed in Ubuntu/Debian

Notifications You must be signed in to change notification settings

Grenguar/view-packages-api

Repository files navigation

view-packages-api

REST API for checking what packages are installed in Ubuntu/Debian

Instructions

Run npm install && npm run prod and go to one of the listed endpoints (better using Postman or curl).

Endpoints

Basic REST

  • GET /api/v1/packages/ - gives the list of installed packages
  • GET /api/v1/packages/{package_name} - gives more detailed info about the package. Note: package should be from the list

HATEOAS implementation

  • GET /api/v2/packages/ - gives the list of installed packages
  • GET /api/v2/packages/{package_name} - gives more detailed info about the package. Note: package should be from the list

Examples

To run with Docker

  • From root folder docker build -t view_packages_api . && docker run --rm -i -p 8080:8080 --name=view_packages_api -t view_packages_api

About

REST API for checking what packages are installed in Ubuntu/Debian

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published