Skip to content

Commit

Permalink
Initial fixes to api docs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Brain <[email protected]>
  • Loading branch information
ABrain7710 committed Aug 19, 2021
1 parent 3abc28a commit 373ba50
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions augur/routes/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_repos_in_repo_group(repo_group_id):
status=200,
mimetype="application/json")

@server.app.route('/{}/owner/<owner>/name/<repo>'.format(server.api_version))
@server.app.route('/{}/owner/<owner>/repo/<repo>'.format(server.api_version))
def get_repo_by_git_name(owner, repo):

get_repo_by_git_name_sql = s.sql.text("""
Expand Down Expand Up @@ -191,7 +191,7 @@ def get_issues(repo_group_id, repo_id=None):
repo_name
FROM issues JOIN repo ON issues.repo_id = repo.repo_id, issue_events
WHERE issues.repo_id = :repo_id
AND issues.pull_request IS NULL
AND issues.pull_request IS NULL
AND issues.issue_id = issue_events.issue_id
GROUP BY issues.issue_id, repo_name
ORDER by OPEN_DAY DESC
Expand Down
56 changes: 28 additions & 28 deletions docs/source/rest-api/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ paths:
/owner/:owner/repo/:repo:
get:
description: Get the repo_group_id and repo_id of a particular repo.
operationId: Get Repo
operationId: Get Repo by Owner and Repo
responses:
'200':
description: OK
Expand All @@ -31,7 +31,7 @@ paths:
/repo-groups:
get:
description: Get all the downloaded repo groups.
operationId: Repo Groups
operationId: Get All Repo Groups
responses:
'200':
description: OK
Expand Down Expand Up @@ -80,7 +80,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-risk/blob/master/metrics/Committers.md
operationId: (Repo Group)
operationId: Committers (Repo Group)
parameters:
- description: Repository Group ID
in: path
Expand Down Expand Up @@ -124,7 +124,7 @@ paths:
type: array
tags:
- risk
/repo-groups/:repo_group_id/abandoned_issues:
/repo-groups/:repo_group_id/abandoned-issues:
get:
description: List of abandoned issues (last updated &gt;= 1 year ago)
operationId: Abandoned Issues (Repo)
Expand Down Expand Up @@ -215,7 +215,7 @@ paths:
get:
description: 'This is an Augur-specific metric. We are currently working to
define these more formally. '
operationId: Annual Commit Count Ranked by New Repo in Repo Group(Repo)
operationId: Annual Commit Count Ranked by New Repo in Repo Group (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -275,7 +275,7 @@ paths:
get:
description: 'This is an Augur-specific metric. We are currently working to
define these more formally. '
operationId: Annual Commit Count Ranked by Repo in Repo Group(Repo)
operationId: Annual Commit Count Ranked by Repo in Repo Group (Repo)
parameters:
- description: Base64 version of the URL of the GitHub repository as it appears
in the Facade DB
Expand Down Expand Up @@ -309,7 +309,7 @@ paths:
get:
description: 'This is an Augur-specific metric. We are currently working to
define these more formally. '
operationId: Annual Lines of Code Ranked by New Repo in Repo Group(Repo)
operationId: Annual Lines of Code Ranked by New Repo in Repo Group (Repo)
parameters:
- description: Base64 version of the URL of the GitHub repository as it appears
in the Facade DB
Expand Down Expand Up @@ -343,7 +343,7 @@ paths:
get:
description: 'This is an Augur-specific metric. We are currently working to
define these more formally. '
operationId: Annual Lines of Code Ranked by Repo in Repo Group(Repo)
operationId: Annual Lines of Code Ranked by Repo in Repo Group (Repo)
parameters:
- description: Base64 version of the URL of the GitHub repository as it appears
in the Facade DB
Expand Down Expand Up @@ -373,7 +373,7 @@ paths:
type: array
tags:
- experimental
/repo-groups/:repo_group_id/avgerage-issue-resolution-time:
/repo-groups/:repo_group_id/average-issue-resolution-time:
get:
description: 'The average issue resolution time. '
externalDocs:
Expand Down Expand Up @@ -1465,7 +1465,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-risk/blob/master/metrics/License_Coverage.md
operationId: License Coverage(Repo Group)
operationId: License Coverage (Repo Group)
parameters:
- description: Repository Group ID
in: path
Expand Down Expand Up @@ -1500,7 +1500,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-risk/blob/master/metrics/License_Coverage.md
operationId: License Declared(Repo Group)
operationId: License Declared (Repo Group)
parameters:
- description: Repository Group ID
in: path
Expand Down Expand Up @@ -1532,7 +1532,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-evolution/blob/master/metrics/contributors-new.md
operationId: Lines Changed by Author(Repo)
operationId: Lines Changed by Author (Repo)
parameters:
- description: Repository Group ID
in: path
Expand Down Expand Up @@ -1652,10 +1652,10 @@ paths:
type: array
tags:
- experimental
/repo-groups/:repo_group_id/pull-request-closed-no-merge:
/repo-groups/:repo_group_id/pull-requests-closed-no-merge:
get:
description: Timeseries of pull request which were closed but not merged
operationId: Pull Request Closed but not merged(Repo)
operationId: Pull Request Closed but Not Merged (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -1747,7 +1747,7 @@ paths:
/repo-groups/:repo_group_id/repos:
get:
description: Get all the repos in a repo group.
operationId: Repos in Repo Group
operationId: Get Repos in Repo Group
responses:
'200':
description: OK
Expand Down Expand Up @@ -2202,7 +2202,7 @@ paths:
/repos:
get:
description: Get all the downloaded repos.
operationId: Repos
operationId: Get All Repos
responses:
'200':
description: OK
Expand Down Expand Up @@ -2521,7 +2521,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-risk/blob/master/metrics/Committers.md
operationId: Committers(Repo)
operationId: Committers (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -3420,7 +3420,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-risk/blob/master/metrics/License_Coverage.md
operationId: License Coverage(Repo)
operationId: License Coverage (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -3462,7 +3462,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-risk/blob/master/metrics/License_Coverage.md
operationId: License Declared(Repo)
operationId: License Declared (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -3540,10 +3540,10 @@ paths:
type: array
tags:
- experimental
/repos/:repo_id/pull-request-closed-no-merge:
/repos/:repo_id/pull-requests-closed-no-merge:
get:
description: ''
operationId: Pull Request Closed but not merged(Repo)
operationId: Pull Request Closed but Not Merged (Repo)
parameters:
- description: Repository ID.
in: path
Expand Down Expand Up @@ -3683,7 +3683,7 @@ paths:
externalDocs:
description: CHAOSS Metric Definition
url: https://github.com/chaoss/wg-evolution/blob/master/metrics/Reviews_Duration.md
operationId: review Duration (Repo)
operationId: Review Duration (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -4105,7 +4105,7 @@ paths:
/repos/:repo_id/watchers-count:
get:
description: Watchers count.
operationId: watchers Count (Repo)
operationId: Watchers Count (Repo)
parameters:
- description: Repository Group ID.
in: path
Expand Down Expand Up @@ -4137,7 +4137,7 @@ paths:
/rg-name/:rg_name/repo-name/:repo_name:
get:
description: Get the repo_group_id and repo_id of a particular repo.
operationId: Get Repo
operationId: Get Repo by Repo Group Name and Repo Name
responses:
'200':
description: OK
Expand All @@ -4156,10 +4156,10 @@ paths:
type: array
tags:
- utility
/rg-names/:rg_name:
/rg-name/:rg_name:
get:
description: Get the repo_id of a particular repo group.
operationId: Get Repo
operationId: Get Repo by Repo Name
responses:
'200':
description: OK
Expand All @@ -4175,10 +4175,10 @@ paths:
type: array
tags:
- utility
/top-insights:
/repo-groups/:repo_group_id/top-insights:
get:
description: Get all the downloaded repo groups.
operationId: Top Insights
operationId: Get Top Insights
responses:
'200':
description: OK
Expand Down

0 comments on commit 373ba50

Please sign in to comment.