- 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.
35 lines
629 B
Plaintext
35 lines
629 B
Plaintext
meta {
|
|
name: Get Git Repositories
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/api/git_repositories?project=4
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
params:query {
|
|
project: 4
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
Cookie: {{sessionCookie}}
|
|
}
|
|
|
|
docs {
|
|
# Get Git Repositories
|
|
|
|
Fetches all Git repositories associated with a specific project.
|
|
|
|
## Query Parameters
|
|
- `project`: Project ID (required for security filtering)
|
|
|
|
## Security
|
|
- Requires authentication via session cookie
|
|
- SearchFilter ensures only repositories for the specified project are returned
|
|
- Voter checks are applied on individual items
|
|
}
|