Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 89 additions & 1 deletion openapi/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: Team-po Server API
version: 0.5.0
version: 0.6.0
summary: Client-facing contract mirrored from the current Spring controllers.
servers:
- url: /api
Expand Down Expand Up @@ -863,6 +863,55 @@ paths:
$ref: '#/components/responses/Conflict'
'500':
$ref: '#/components/responses/InternalServerError'
/team-space/{projectGroupId}/team-rule:
get:
tags: [TeamSpace]
security:
- bearerAuth: []
summary: Get team rule for a team space
parameters:
- $ref: '#/components/parameters/ProjectGroupId'
responses:
'200':
description: Team rule
content:
application/json:
schema:
$ref: '#/components/schemas/TeamRuleResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
put:
tags: [TeamSpace]
security:
- bearerAuth: []
summary: Update team rule for a team space
parameters:
- $ref: '#/components/parameters/ProjectGroupId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateTeamRuleRequest'
responses:
'200':
description: Team rule updated
content:
application/json:
schema:
$ref: '#/components/schemas/TeamRuleResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
/team-space/{projectGroupId}/github/status:
get:
tags: [TeamSpace]
Expand Down Expand Up @@ -1714,6 +1763,45 @@ components:
updatedAt:
type: string
format: date-time
TeamRuleResponse:
type: object
additionalProperties: false
required:
- id
- projectGroupId
- content
- version
- updatedAt
- updatedByNickname
properties:
id:
type: integer
format: int64
projectGroupId:
type: integer
format: int64
content:
type: string
version:
type: integer
format: int64
updatedAt:
type: string
format: date-time
updatedByNickname:
type: string
UpdateTeamRuleRequest:
type: object
additionalProperties: false
required: [content, version]
properties:
content:
type: string
minLength: 1
maxLength: 10000
version:
type: integer
format: int64
GithubInstallationStatus:
type: object
additionalProperties: false
Expand Down
Loading
Loading