- Added owner and team members relationships to the Project entity. - Updated ProjectRepository to find projects based on user ownership or team membership. - Enhanced ProjectVoter to manage view, edit, and delete permissions based on ownership and team membership. - Created ProjectAccessExtension to filter projects based on user access. - Updated ProjectManagement.vue to include owner and team member selection in the UI. - Implemented API endpoints for managing Git repositories with proper access control. - Added migration to update the database schema for project ownership and team members.
39 lines
632 B
Plaintext
39 lines
632 B
Plaintext
meta {
|
|
name: Update Repository
|
|
type: http
|
|
seq: 8
|
|
}
|
|
|
|
put {
|
|
url: {{baseUrl}}/api/git_repositories/1
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
Content-Type: application/json
|
|
Cookie: {{sessionCookie}}
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"name": "Updated Repository Name",
|
|
"branch": "develop"
|
|
}
|
|
}
|
|
|
|
docs {
|
|
# Update Repository
|
|
|
|
Updates an existing Git repository entry.
|
|
|
|
## Security
|
|
- Requires authentication via session cookie
|
|
- Voter checks EDIT permission
|
|
- Only accessible if repository belongs to user's project
|
|
|
|
## Partial Updates
|
|
You can send only the fields you want to update.
|
|
}
|