guacrest

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

REST API Documentation

The guacrest is currently an EXPERIMENTAL Feature!

Implementation:

  • Using gin-gonic gin framework for building REST API

Available HTTP Methods:

  • GET pURL - Fetches a known item using a given pURL. The pURL is a mandatory parameter.
    • Success Response:
      • If the pURL is valid and the known item is found, the server responds with HTTP status code 200 and includes the known item in the response body.
    • Error Responses:
      • If the pURL is invalid, the server responds with HTTP status code 400 (Bad Request).
      • If the known item is not found for the provided pURL, the server responds with HTTP status code 404 (Not Found).
      • For any other server errors, the server responds with HTTP status code 500 (Internal Server Error).

Endpoints:

  • /known/package/*hash
  • /known/source/*vcs
  • /known/artifact/*artifact
  • /vuln/*purl
  • /bad

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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