// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Project.WithProjectId {
    public var collaborators: Collaborators {
        Collaborators(path: path + "/collaborators")
    }

    public struct Collaborators {
        /// Path: `/api/project/{project_id}/collaborators`
        public let path: String

        /// Get Project Collaborators
        public var get: Request<[GenAPI.CollaboratorSchema]> {
            Request(path: path, method: "GET", id: "studio_api_bots_project_api_get_project_collaborators")
        }

        /// Remove Project Collaborator
        public func delete(_ body: GenAPI.ProjectRemoveCollaboratorSpec) -> Request<Void> {
            Request(path: path, method: "DELETE", body: body, id: "studio_api_bots_project_api_remove_project_collaborator")
        }
    }
}
