Skip to content

Commit

Permalink
Modified api/openapi/apis/projects.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Reingold Shekhtel authored and Reingold Shekhtel committed Jan 23, 2025
1 parent c87177a commit dc7784d
Showing 1 changed file with 14 additions and 69 deletions.
83 changes: 14 additions & 69 deletions api/openapi/apis/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,60 +28,24 @@ servers:
security:
- BearerAuth: []
paths:
'/projects/{project_name}/activities/suggestions':
get:
summary: Get project suggestions
tags:
- Projects
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- type: object
properties:
suggestions:
type: array
description: List of activities suggestions for the project by type.
items:
type: string
- $ref: ../models/Limit.yaml
'404':
description: Not Found
operationId: get-project-suggestions
parameters:
- schema:
type: string
enum:
- subject_name
in: query
name: type
description: Type of suggestions
- schema:
type: string
in: query
name: filter
description: Filter query for suggestions
- schema:
type: integer
in: query
name: limit
description: Maximum number of suggestions
description: |-
Get project activities suggestions by type for autocomplete.
Supported types:
- subject_name: Get suggestions for activity subject names in the project.
If the type isn't provided or provided incorrectly, you get a 404 error.
'/projects/{project_id}/users':
parameters:
- schema:
type: string
name: project_name
name: project_id
in: path
required: true
description: Project name
post:
summary: Assign user to project
operationId: post-projects-project_id-users
responses:
'200':
description: OK
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectUser'
'/projects/{project_id}/users/{user_id}':
parameters:
- schema:
Expand Down Expand Up @@ -109,30 +73,11 @@ paths:
project_role:
$ref: ../enums/projectRole.yaml
delete:
summary: 'Unassign user from project'
summary: Unassign user from project
operationId: delete-projects-project_id-users-user_id
responses:
'200':
description: OK
'/projects/{project_id}/users':
parameters:
- schema:
type: string
name: project_id
in: path
required: true
post:
summary: 'Assign user to project'
operationId: post-projects-project_id-users
responses:
'200':
description: OK
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectUser'
description: ''
components:
securitySchemes:
BearerAuth:
Expand Down

0 comments on commit dc7784d

Please sign in to comment.