Skip to content

Commit

Permalink
chore: update API specs and client
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 25, 2024
1 parent 1d03f2b commit faf38bc
Show file tree
Hide file tree
Showing 40 changed files with 153 additions and 3,322 deletions.
298 changes: 153 additions & 145 deletions server/application-server/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,24 @@ paths:
type: array
items:
$ref: "#/components/schemas/LeaderboardEntry"
/activity/{login}:
get:
tags:
- activity
operationId: getActivityByUser
parameters:
- name: login
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Activity"
/workspace/team/{teamId}:
delete:
tags:
Expand Down Expand Up @@ -358,24 +376,14 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/TeamInfo"
/activity/{login}:
get:
/user:
delete:
tags:
- activity-dashboard
operationId: getActivitiesByUser
parameters:
- name: login
in: path
required: true
schema:
type: string
- user
operationId: deleteUser
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Activities"
components:
schemas:
PullRequestInfo:
Expand Down Expand Up @@ -444,7 +452,105 @@ components:
updatedAt:
type: string
format: date-time
Activities:
UserProfile:
required:
- contributedRepositories
- firstContribution
- userInfo
type: object
properties:
userInfo:
$ref: "#/components/schemas/UserInfo"
firstContribution:
type: string
format: date-time
contributedRepositories:
type: array
items:
$ref: "#/components/schemas/RepositoryInfo"
reviewActivity:
type: array
items:
$ref: "#/components/schemas/PullRequestReviewInfo"
openPullRequests:
type: array
items:
$ref: "#/components/schemas/PullRequestInfo"
RepositoryInfo:
required:
- htmlUrl
- id
- name
- nameWithOwner
type: object
properties:
id:
type: integer
format: int64
name:
type: string
nameWithOwner:
type: string
description:
type: string
htmlUrl:
type: string
UserTeams:
required:
- id
- login
- name
- teams
- url
type: object
properties:
id:
type: integer
format: int64
login:
type: string
name:
type: string
url:
type: string
teams:
uniqueItems: true
type: array
items:
$ref: "#/components/schemas/TeamInfo"
PullRequestBaseInfo:
required:
- htmlUrl
- id
- isDraft
- isMerged
- number
- state
- title
type: object
properties:
id:
type: integer
format: int64
number:
type: integer
format: int32
title:
type: string
state:
type: string
enum:
- OPEN
- CLOSED
isDraft:
type: boolean
isMerged:
type: boolean
repository:
$ref: "#/components/schemas/RepositoryInfo"
htmlUrl:
type: string
Activity:
required:
- issues
- pullRequests
Expand All @@ -462,66 +568,69 @@ components:
reviews:
type: array
items:
$ref: "#/components/schemas/PullRequestReviewInfo"
LabelInfo:
$ref: "#/components/schemas/ReviewActivityDto"
UserInfo:
required:
- color
- avatarUrl
- htmlUrl
- id
- login
- name
type: object
properties:
id:
type: integer
format: int64
login:
type: string
email:
type: string
avatarUrl:
type: string
name:
type: string
color:
htmlUrl:
type: string
repository:
$ref: "#/components/schemas/RepositoryInfo"
UserProfile:
TeamInfo:
required:
- contributedRepositories
- firstContribution
- userInfo
- color
- id
- labels
- name
- repositories
type: object
properties:
userInfo:
$ref: "#/components/schemas/UserInfo"
firstContribution:
id:
type: integer
format: int64
name:
type: string
format: date-time
contributedRepositories:
color:
type: string
repositories:
type: array
items:
$ref: "#/components/schemas/RepositoryInfo"
reviewActivity:
type: array
items:
$ref: "#/components/schemas/PullRequestReviewInfo"
openPullRequests:
labels:
type: array
items:
$ref: "#/components/schemas/PullRequestInfo"
RepositoryInfo:
$ref: "#/components/schemas/LabelInfo"
LabelInfo:
required:
- htmlUrl
- color
- id
- name
- nameWithOwner
type: object
properties:
id:
type: integer
format: int64
name:
type: string
nameWithOwner:
type: string
description:
type: string
htmlUrl:
color:
type: string
repository:
$ref: "#/components/schemas/RepositoryInfo"
PullRequestReviewInfo:
required:
- codeComments
Expand Down Expand Up @@ -574,29 +683,6 @@ components:
type: string
scheduledTime:
type: string
UserTeams:
required:
- id
- login
- name
- teams
- url
type: object
properties:
id:
type: integer
format: int64
login:
type: string
name:
type: string
url:
type: string
teams:
uniqueItems: true
type: array
items:
$ref: "#/components/schemas/TeamInfo"
IssueInfo:
required:
- commentsCount
Expand Down Expand Up @@ -643,84 +729,6 @@ components:
updatedAt:
type: string
format: date-time
PullRequestBaseInfo:
required:
- htmlUrl
- id
- isDraft
- isMerged
- number
- state
- title
type: object
properties:
id:
type: integer
format: int64
number:
type: integer
format: int32
title:
type: string
state:
type: string
enum:
- OPEN
- CLOSED
isDraft:
type: boolean
isMerged:
type: boolean
repository:
$ref: "#/components/schemas/RepositoryInfo"
htmlUrl:
type: string
UserInfo:
required:
- avatarUrl
- htmlUrl
- id
- login
- name
type: object
properties:
id:
type: integer
format: int64
login:
type: string
email:
type: string
avatarUrl:
type: string
name:
type: string
htmlUrl:
type: string
TeamInfo:
required:
- color
- id
- labels
- name
- repositories
type: object
properties:
id:
type: integer
format: int64
name:
type: string
color:
type: string
repositories:
type: array
items:
$ref: "#/components/schemas/RepositoryInfo"
labels:
type: array
items:
$ref: "#/components/schemas/LabelInfo"
LeaderboardEntry:
required:
- numberOfApprovals
Expand Down
4 changes: 0 additions & 4 deletions webapp/src/app/core/modules/openapi/.gitignore

This file was deleted.

Loading

0 comments on commit faf38bc

Please sign in to comment.