- 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.
28 lines
445 B
Plaintext
28 lines
445 B
Plaintext
meta {
|
|
name: Get Single Repository
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/api/git_repositories/1
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
Cookie: {{sessionCookie}}
|
|
}
|
|
|
|
docs {
|
|
# Get Single Repository
|
|
|
|
Fetches a specific Git repository by ID.
|
|
|
|
## Security
|
|
- Requires authentication via session cookie
|
|
- Voter checks VIEW permission
|
|
- Only accessible if repository belongs to user's project
|
|
}
|