Skip to content

Commit

Permalink
Connection implementation on new sbom endpoint in CycloneDX format
Browse files Browse the repository at this point in the history
STONEBLD-888

Signed-off-by: Felipe de Almeida <[email protected]>
  • Loading branch information
fepas authored and taylormadore committed Mar 9, 2023
1 parent a2c517b commit 0213518
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions cachito/web/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,6 @@ def _check_requests_state(requests: List[Request], valid_states: Set[str]) -> No
raise BadRequest(error_msg)


@api_v1.route("/content-manifest", methods=["GET"])
def get_content_manifest_by_requests():
"""
Retrieve the content manifest associated with the given requests.
Expand Down Expand Up @@ -821,7 +820,6 @@ def get_content_manifest_by_requests():
return send_json_file_back(assembled_icm)


@api_v1.route("/sbom", methods=["GET"])
def get_sbom_by_requests() -> flask.Response:
"""
Retrieve the content manifest sbom associated with the given requests.
Expand Down
1 change: 1 addition & 0 deletions cachito/web/static/api_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ paths:
example: "Request 1 is in state in_progress, not complete or stale."
"/sbom":
get:
operationId: cachito.web.api_v1.get_sbom_by_requests
summary: Get the sbom of multiple requests
description: Return the sbom of the specified Cachito requests
parameters:
Expand Down

0 comments on commit 0213518

Please sign in to comment.