Skip to content

Commit 148ae6b

Browse files
committed
chore: update Appwrite version
1 parent 43cec02 commit 148ae6b

File tree

4 files changed

+0
-102
lines changed

4 files changed

+0
-102
lines changed

docs/examples/functions/list-templates.md

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

docs/functions.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,6 @@ GET https://cloud.appwrite.io/v1/functions/specifications
6767
** List allowed function specifications for this instance.
6868
**
6969

70-
## List function templates
71-
72-
```http request
73-
GET https://cloud.appwrite.io/v1/functions/templates
74-
```
75-
76-
** List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method. **
77-
78-
### Parameters
79-
80-
| Field Name | Type | Description | Default |
81-
| --- | --- | --- | --- |
82-
| runtimes | array | List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed. | [] |
83-
| useCases | array | List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed. | [] |
84-
| limit | integer | Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000. | 25 |
85-
| offset | integer | Offset the list of returned templates. Maximum offset is 5000. | 0 |
86-
8770
## Get function template
8871

8972
```http request

src/Appwrite/Services/Functions.php

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -248,57 +248,6 @@ public function listSpecifications(): array
248248
);
249249
}
250250

251-
/**
252-
* List function templates
253-
*
254-
* List available function templates. You can use template details in
255-
* [createFunction](/docs/references/cloud/server-nodejs/functions#create)
256-
* method.
257-
*
258-
* @param ?array $runtimes
259-
* @param ?array $useCases
260-
* @param ?int $limit
261-
* @param ?int $offset
262-
* @throws AppwriteException
263-
* @return array
264-
*/
265-
public function listTemplates(?array $runtimes = null, ?array $useCases = null, ?int $limit = null, ?int $offset = null): array
266-
{
267-
$apiPath = str_replace(
268-
[],
269-
[],
270-
'/functions/templates'
271-
);
272-
273-
$apiParams = [];
274-
275-
if (!is_null($runtimes)) {
276-
$apiParams['runtimes'] = $runtimes;
277-
}
278-
279-
if (!is_null($useCases)) {
280-
$apiParams['useCases'] = $useCases;
281-
}
282-
283-
if (!is_null($limit)) {
284-
$apiParams['limit'] = $limit;
285-
}
286-
287-
if (!is_null($offset)) {
288-
$apiParams['offset'] = $offset;
289-
}
290-
291-
$apiHeaders = [];
292-
$apiHeaders['content-type'] = 'application/json';
293-
294-
return $this->client->call(
295-
Client::METHOD_GET,
296-
$apiPath,
297-
$apiHeaders,
298-
$apiParams
299-
);
300-
}
301-
302251
/**
303252
* Get function template
304253
*

tests/Appwrite/Services/FunctionsTest.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,6 @@ public function testMethodListSpecifications(): void {
109109
$this->assertSame($data, $response);
110110
}
111111

112-
public function testMethodListTemplates(): void {
113-
114-
$data = array(
115-
"total" => 5,
116-
"templates" => array(),);
117-
118-
119-
$this->client
120-
->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any())
121-
->andReturn($data);
122-
123-
$response = $this->functions->listTemplates(
124-
);
125-
126-
$this->assertSame($data, $response);
127-
}
128-
129112
public function testMethodGetTemplate(): void {
130113

131114
$data = array(

0 commit comments

Comments
 (0)