Skip to content

1.6.x #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update Appwrite version
  • Loading branch information
christyjacob4 committed Aug 27, 2024
commit f9b4991625a6c63358a9e38f885728249f284006
46 changes: 0 additions & 46 deletions Sources/Appwrite/Services/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,52 +211,6 @@ open class Functions: Service {
)
}

///
/// List function templates
///
/// List available function templates. You can use template details in
/// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
/// method.
///
/// @param [String] runtimes
/// @param [String] useCases
/// @param Int limit
/// @param Int offset
/// @throws Exception
/// @return array
///
open func listTemplates(
runtimes: [String]? = nil,
useCases: [String]? = nil,
limit: Int? = nil,
offset: Int? = nil
) async throws -> AppwriteModels.TemplateFunctionList {
let apiPath: String = "/functions/templates"

let apiParams: [String: Any?] = [
"runtimes": runtimes,
"useCases": useCases,
"limit": limit,
"offset": offset
]

let apiHeaders: [String: String] = [
"content-type": "application/json"
]

let converter: (Any) -> AppwriteModels.TemplateFunctionList = { response in
return AppwriteModels.TemplateFunctionList.from(map: response as! [String: Any])
}

return try await client.call(
method: "GET",
path: apiPath,
headers: apiHeaders,
params: apiParams,
converter: converter
)
}

///
/// Get function template
///
Expand Down
35 changes: 0 additions & 35 deletions Sources/AppwriteModels/TemplateFunctionList.swift

This file was deleted.

15 changes: 0 additions & 15 deletions docs/examples/functions/list-templates.md

This file was deleted.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy