Skip to content

Commit

Permalink
add getFolderMetaByUuid in driveAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
patricioxavier8 committed Nov 10, 2024
1 parent 5b49f8e commit 8671ef3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/InternxtSwiftCore/Services/HttpAPI/DriveAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ public struct DriveAPI {
return try await apiClient.fetch(type: GetFolderMetaByIdResponse.self, endpoint, debugResponse: debug)
}

public func getFolderMetaByUuid(uuid: String, debug: Bool = false) async throws -> GetFolderMetaByIdResponse {
let endpoint = Endpoint(
path: "\(self.baseUrl)/folders/\(uuid)/meta",
method: .GET
)

return try await apiClient.fetch(type: GetFolderMetaByIdResponse.self, endpoint, debugResponse: debug)
}

public func getFileMetaByUuid(uuid: String, debug: Bool = false) async throws -> GetFileMetaByIdResponse {
let endpoint = Endpoint(
path: "\(self.baseUrl)/files/\(uuid)/meta",
Expand Down

0 comments on commit 8671ef3

Please sign in to comment.