Skip to content

Commit

Permalink
Add undocumented endpoint (languages by repo_id)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Brain <[email protected]>
  • Loading branch information
ABrain7710 committed Aug 20, 2021
1 parent f1b8efd commit 2c87473
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/source/rest-api/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c87473

Please sign in to comment.