From 68f6c5ea7ee99500624d5c0d5437505cd2ec44ae Mon Sep 17 00:00:00 2001 From: Ahmed Agabani <70949530+ahmed-agabani-snyk@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:00:35 +0100 Subject: [PATCH] chore: format container registry agent accept json --- .../accept.json.sample | 112 +++++++++--------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/client-templates/container-registry-agent/accept.json.sample b/client-templates/container-registry-agent/accept.json.sample index c711987cc..7f0fda752 100644 --- a/client-templates/container-registry-agent/accept.json.sample +++ b/client-templates/container-registry-agent/accept.json.sample @@ -1,62 +1,62 @@ { "public": [ - { - "//": "image scan (discover) callback (v1)", - "method": "POST", - "path": "/api/v1/import/app" - }, - { - "//": "image scan done callback (v2)", - "method": "POST", - "path": "/api/v2/import/done" - }, - { - "//": "image scan result callback (v2)", - "method": "POST", - "path": "/api/v2/import/result" - } + { + "//": "image scan (discover) callback (v1)", + "method": "POST", + "path": "/api/v1/import/app" + }, + { + "//": "image scan done callback (v2)", + "method": "POST", + "path": "/api/v2/import/done" + }, + { + "//": "image scan result callback (v2)", + "method": "POST", + "path": "/api/v2/import/result" + } ], "private": [ - { - "method": "GET", - "path": "/healthcheck", - "origin": "${CR_AGENT_URL}" - }, - { - "//": "validates credentials with connection to container registry", - "method": "GET", - "path": "/validate-credentials", - "origin": "${CR_AGENT_URL}" - }, - { - "//": "returns image state id used in recurring or re-tests", - "method": "GET", - "path": "/get-state-identifier", - "origin": "${CR_AGENT_URL}" - }, - { - "//": "lists repositories in container registry", - "method": "GET", - "path": "/list", - "origin": "${CR_AGENT_URL}" - }, - { - "//": "lists tags/images in a repository", - "method": "GET", - "path": "/list/*", - "origin": "${CR_AGENT_URL}" - }, - { - "//": "accepts image scan requests (v1)", - "method": "POST", - "path": "/discover", - "origin": "${CR_AGENT_URL}" - }, - { - "//": "accepts image scan requests (v2)", - "method": "POST", - "path": "/scan", - "origin": "${CR_AGENT_URL}" - } + { + "method": "GET", + "path": "/healthcheck", + "origin": "${CR_AGENT_URL}" + }, + { + "//": "validates credentials with connection to container registry", + "method": "GET", + "path": "/validate-credentials", + "origin": "${CR_AGENT_URL}" + }, + { + "//": "returns image state id used in recurring or re-tests", + "method": "GET", + "path": "/get-state-identifier", + "origin": "${CR_AGENT_URL}" + }, + { + "//": "lists repositories in container registry", + "method": "GET", + "path": "/list", + "origin": "${CR_AGENT_URL}" + }, + { + "//": "lists tags/images in a repository", + "method": "GET", + "path": "/list/*", + "origin": "${CR_AGENT_URL}" + }, + { + "//": "accepts image scan requests (v1)", + "method": "POST", + "path": "/discover", + "origin": "${CR_AGENT_URL}" + }, + { + "//": "accepts image scan requests (v2)", + "method": "POST", + "path": "/scan", + "origin": "${CR_AGENT_URL}" + } ] }