Skip to content

Commit cd3e817

Browse files
committed
chore: update Appwrite version
1 parent fb538d2 commit cd3e817

File tree

3 files changed

+0
-96
lines changed

3 files changed

+0
-96
lines changed

Sources/Appwrite/Services/Functions.swift

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,6 @@ import AppwriteModels
88
/// The Functions Service allows you view, create and manage your Cloud Functions.
99
open class Functions: Service {
1010

11-
///
12-
/// List function templates
13-
///
14-
/// List available function templates. You can use template details in
15-
/// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
16-
/// method.
17-
///
18-
/// @param [String] runtimes
19-
/// @param [String] useCases
20-
/// @param Int limit
21-
/// @param Int offset
22-
/// @throws Exception
23-
/// @return array
24-
///
25-
open func listTemplates(
26-
runtimes: [String]? = nil,
27-
useCases: [String]? = nil,
28-
limit: Int? = nil,
29-
offset: Int? = nil
30-
) async throws -> AppwriteModels.TemplateFunctionList {
31-
let apiPath: String = "/functions/templates"
32-
33-
let apiParams: [String: Any?] = [
34-
"runtimes": runtimes,
35-
"useCases": useCases,
36-
"limit": limit,
37-
"offset": offset
38-
]
39-
40-
let apiHeaders: [String: String] = [
41-
"content-type": "application/json"
42-
]
43-
44-
let converter: (Any) -> AppwriteModels.TemplateFunctionList = { response in
45-
return AppwriteModels.TemplateFunctionList.from(map: response as! [String: Any])
46-
}
47-
48-
return try await client.call(
49-
method: "GET",
50-
path: apiPath,
51-
headers: apiHeaders,
52-
params: apiParams,
53-
converter: converter
54-
)
55-
}
56-
5711
///
5812
/// Get function template
5913
///

Sources/AppwriteModels/TemplateFunctionList.swift

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/examples/functions/list-templates.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)