Skip to content

Commit ee45f48

Browse files
committed
docs: add swagger docs for delete project endpoint
1 parent c10aef5 commit ee45f48

1 file changed

Lines changed: 110 additions & 0 deletions

File tree

src/docs/swagger.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,6 +3689,116 @@
36893689
}
36903690
]
36913691
}
3692+
},
3693+
"/api/organization/{organizationId}/team/{teamId}/project/{projectId}/": {
3694+
"delete": {
3695+
"tags": ["Project"],
3696+
"summary": "Delete a project",
3697+
"description": "Soft deletes a project. Requires admin, organization owner, or team manager permissions.",
3698+
"parameters": [
3699+
{
3700+
"name": "organizationId",
3701+
"in": "path",
3702+
"description": "Organization ID",
3703+
"required": true,
3704+
"schema": {
3705+
"type": "string"
3706+
}
3707+
},
3708+
{
3709+
"name": "teamId",
3710+
"in": "path",
3711+
"description": "Team ID",
3712+
"required": true,
3713+
"schema": {
3714+
"type": "string"
3715+
}
3716+
},
3717+
{
3718+
"name": "projectId",
3719+
"in": "path",
3720+
"description": "Project ID",
3721+
"required": true,
3722+
"schema": {
3723+
"type": "string"
3724+
}
3725+
}
3726+
],
3727+
"responses": {
3728+
"200": {
3729+
"description": "Project deleted successfully",
3730+
"content": {
3731+
"application/json": {
3732+
"schema": {
3733+
"type": "object",
3734+
"properties": {
3735+
"success": {
3736+
"type": "boolean",
3737+
"example": true
3738+
},
3739+
"message": {
3740+
"type": "string",
3741+
"example": "Project deleted successfully"
3742+
}
3743+
}
3744+
}
3745+
}
3746+
}
3747+
},
3748+
"400": {
3749+
"description": "Bad request - Missing or invalid parameters",
3750+
"content": {
3751+
"application/json": {
3752+
"schema": {
3753+
"type": "object",
3754+
"properties": {
3755+
"message": {
3756+
"type": "string",
3757+
"example": "Organization ID is required"
3758+
}
3759+
}
3760+
}
3761+
}
3762+
}
3763+
},
3764+
"403": {
3765+
"description": "Forbidden - Insufficient permissions",
3766+
"content": {
3767+
"application/json": {
3768+
"schema": {
3769+
"type": "object",
3770+
"properties": {
3771+
"message": {
3772+
"type": "string",
3773+
"example": "You don't have permission to delete projects from this team"
3774+
}
3775+
}
3776+
}
3777+
}
3778+
}
3779+
},
3780+
"404": {
3781+
"description": "Not found - Organization, team or project not found",
3782+
"content": {
3783+
"application/json": {
3784+
"schema": {
3785+
"type": "object",
3786+
"properties": {
3787+
"message": {
3788+
"type": "string"
3789+
}
3790+
}
3791+
}
3792+
}
3793+
}
3794+
}
3795+
},
3796+
"security": [
3797+
{
3798+
"bearerAuth": []
3799+
}
3800+
]
3801+
}
36923802
}
36933803
},
36943804

0 commit comments

Comments
 (0)