From 2c874731001e6667c0feb01f2484c04b53162b95 Mon Sep 17 00:00:00 2001 From: Andrew Brain <61482022+ABrain7710@users.noreply.github.com> Date: Fri, 20 Aug 2021 12:36:42 -0500 Subject: [PATCH] Add undocumented endpoint (languages by repo_id) Signed-off-by: Andrew Brain <61482022+ABrain7710@users.noreply.github.com> --- docs/source/rest-api/spec.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/source/rest-api/spec.yml b/docs/source/rest-api/spec.yml index 51b52d9fd6..15b054ccff 100644 --- a/docs/source/rest-api/spec.yml +++ b/docs/source/rest-api/spec.yml @@ -801,6 +801,41 @@ paths: type: array tags: - risk + /repo-groups/:repo_id/languages: + get: + description: 'The primary language of the repository. ' + externalDocs: + description: CHAOSS Metric Definition + url: https://github.com/chaoss/wg-risk/blob/master/focus-areas/security.md + operationId: Languages (Repo) + parameters: + - description: Repository Group ID + in: path + name: repo_group_id + schema: + type: string + type: string + - description: Repository ID. + in: path + name: repo_id + schema: + type: string + type: string + responses: + '200': + description: OK + schema: + items: + properties: + primary_language: + description: 'Example: Go' + type: string + repo_id: + description: 'Example: 21277' + type: integer + type: array + tags: + - risk /repo-groups/:repo_group_id/license-count: get: description: 'The declared software package license (fetched from CII Best Practices