Skip to content

Commit 1ca3e22

Browse files
Merge pull request #40 from appwrite/dev
fix: remove content-type from GET requests
2 parents 1829c66 + 6755846 commit 1ca3e22

33 files changed

+93
-1016
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite PHP SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square&v=1)
4-
![Version](https://img.shields.io/badge/api%20version-1.6.1-blue.svg?style=flat-square&v=1)
4+
![Version](https://img.shields.io/badge/api%20version-1.6.2-blue.svg?style=flat-square&v=1)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

docs/account.md

Lines changed: 1 addition & 44 deletions
Large diffs are not rendered by default.

docs/avatars.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Avatars Service
22

3-
## Get browser icon
43

54
```http request
65
GET https://cloud.appwrite.io/v1/avatars/browsers/{code}
@@ -19,7 +18,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
1918
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
2019
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |
2120

22-
## Get credit card icon
2321

2422
```http request
2523
GET https://cloud.appwrite.io/v1/avatars/credit-cards/{code}
@@ -34,12 +32,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre
3432

3533
| Field Name | Type | Description | Default |
3634
| --- | --- | --- | --- |
37-
| code | string | **Required** Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro. | |
35+
| code | string | **Required** Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay. | |
3836
| width | integer | Image width. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
3937
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
4038
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |
4139

42-
## Get favicon
4340

4441
```http request
4542
GET https://cloud.appwrite.io/v1/avatars/favicon
@@ -55,7 +52,6 @@ This endpoint does not follow HTTP redirects. **
5552
| --- | --- | --- | --- |
5653
| url | string | **Required** Website URL which you want to fetch the favicon from. | |
5754

58-
## Get country flag
5955

6056
```http request
6157
GET https://cloud.appwrite.io/v1/avatars/flags/{code}
@@ -75,7 +71,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
7571
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
7672
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |
7773

78-
## Get image from URL
7974

8075
```http request
8176
GET https://cloud.appwrite.io/v1/avatars/image
@@ -95,7 +90,6 @@ This endpoint does not follow HTTP redirects. **
9590
| width | integer | Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400. | 400 |
9691
| height | integer | Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400. | 400 |
9792

98-
## Get user initials
9993

10094
```http request
10195
GET https://cloud.appwrite.io/v1/avatars/initials
@@ -117,7 +111,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
117111
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 500 |
118112
| background | string | Changes background color. By default a random color will be picked and stay will persistent to the given name. | |
119113

120-
## Get QR code
121114

122115
```http request
123116
GET https://cloud.appwrite.io/v1/avatars/qr

docs/databases.md

Lines changed: 2 additions & 43 deletions
Large diffs are not rendered by default.

docs/examples/databases/update-float-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ $result = $databases->updateFloatAttribute(
1515
collectionId: '<COLLECTION_ID>',
1616
key: '',
1717
required: false,
18-
min: null,
19-
max: null,
2018
default: null,
19+
min: null, // optional
20+
max: null, // optional
2121
newKey: '' // optional
2222
);

docs/examples/databases/update-integer-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ $result = $databases->updateIntegerAttribute(
1515
collectionId: '<COLLECTION_ID>',
1616
key: '',
1717
required: false,
18-
min: null,
19-
max: null,
2018
default: null,
19+
min: null, // optional
20+
max: null, // optional
2121
newKey: '' // optional
2222
);

docs/examples/health/get-queue-usage-dump.md renamed to docs/examples/health/get-queue-stats-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ $client = (new Client())
1010

1111
$health = new Health($client);
1212

13-
$result = $health->getQueueUsageDump(
13+
$result = $health->getQueueStatsResources(
1414
threshold: null // optional
1515
);

docs/examples/health/get-queue.md

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

docs/functions.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Functions Service
22

3-
## List functions
43

54
```http request
65
GET https://cloud.appwrite.io/v1/functions
@@ -15,7 +14,6 @@ GET https://cloud.appwrite.io/v1/functions
1514
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deployment, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId | [] |
1615
| search | string | Search term to filter your list results. Max length: 256 chars. | |
1716

18-
## Create function
1917

2018
```http request
2119
POST https://cloud.appwrite.io/v1/functions
@@ -50,15 +48,13 @@ POST https://cloud.appwrite.io/v1/functions
5048
| templateVersion | string | Version (tag) for the repo linked to the function template. | |
5149
| specification | string | Runtime specification for the function and builds. | s-1vcpu-512mb |
5250

53-
## List runtimes
5451

5552
```http request
5653
GET https://cloud.appwrite.io/v1/functions/runtimes
5754
```
5855

5956
** Get a list of all runtimes that are currently active on your instance. **
6057

61-
## List available function runtime specifications
6258

6359
```http request
6460
GET https://cloud.appwrite.io/v1/functions/specifications
@@ -67,7 +63,6 @@ GET https://cloud.appwrite.io/v1/functions/specifications
6763
** List allowed function specifications for this instance.
6864
**
6965

70-
## Get function
7166

7267
```http request
7368
GET https://cloud.appwrite.io/v1/functions/{functionId}
@@ -81,7 +76,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}
8176
| --- | --- | --- | --- |
8277
| functionId | string | **Required** Function ID. | |
8378

84-
## Update function
8579

8680
```http request
8781
PUT https://cloud.appwrite.io/v1/functions/{functionId}
@@ -112,7 +106,6 @@ PUT https://cloud.appwrite.io/v1/functions/{functionId}
112106
| providerRootDirectory | string | Path to function code in the linked repo. | |
113107
| specification | string | Runtime specification for the function and builds. | s-1vcpu-512mb |
114108

115-
## Delete function
116109

117110
```http request
118111
DELETE https://cloud.appwrite.io/v1/functions/{functionId}
@@ -126,7 +119,6 @@ DELETE https://cloud.appwrite.io/v1/functions/{functionId}
126119
| --- | --- | --- | --- |
127120
| functionId | string | **Required** Function ID. | |
128121

129-
## List deployments
130122

131123
```http request
132124
GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments
@@ -142,7 +134,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments
142134
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands, type, size | [] |
143135
| search | string | Search term to filter your list results. Max length: 256 chars. | |
144136

145-
## Create deployment
146137

147138
```http request
148139
POST https://cloud.appwrite.io/v1/functions/{functionId}/deployments
@@ -164,7 +155,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
164155
| code | file | Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory. | |
165156
| activate | boolean | Automatically activate the deployment when it is finished building. | |
166157

167-
## Get deployment
168158

169159
```http request
170160
GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}
@@ -179,7 +169,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentI
179169
| functionId | string | **Required** Function ID. | |
180170
| deploymentId | string | **Required** Deployment ID. | |
181171

182-
## Update deployment
183172

184173
```http request
185174
PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}
@@ -194,7 +183,6 @@ PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymen
194183
| functionId | string | **Required** Function ID. | |
195184
| deploymentId | string | **Required** Deployment ID. | |
196185

197-
## Delete deployment
198186

199187
```http request
200188
DELETE https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}
@@ -209,7 +197,6 @@ DELETE https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deployme
209197
| functionId | string | **Required** Function ID. | |
210198
| deploymentId | string | **Required** Deployment ID. | |
211199

212-
## Rebuild deployment
213200

214201
```http request
215202
POST https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}/build
@@ -225,7 +212,6 @@ POST https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deployment
225212
| deploymentId | string | **Required** Deployment ID. | |
226213
| buildId | string | Build unique ID. | |
227214

228-
## Cancel deployment
229215

230216
```http request
231217
PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}/build
@@ -240,7 +226,6 @@ PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymen
240226
| functionId | string | **Required** Function ID. | |
241227
| deploymentId | string | **Required** Deployment ID. | |
242228

243-
## Download deployment
244229

245230
```http request
246231
GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}/download
@@ -255,7 +240,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentI
255240
| functionId | string | **Required** Function ID. | |
256241
| deploymentId | string | **Required** Deployment ID. | |
257242

258-
## List executions
259243

260244
```http request
261245
GET https://cloud.appwrite.io/v1/functions/{functionId}/executions
@@ -271,7 +255,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/executions
271255
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId | [] |
272256
| search | string | Search term to filter your list results. Max length: 256 chars. | |
273257

274-
## Create execution
275258

276259
```http request
277260
POST https://cloud.appwrite.io/v1/functions/{functionId}/executions
@@ -291,7 +274,6 @@ POST https://cloud.appwrite.io/v1/functions/{functionId}/executions
291274
| headers | object | HTTP headers of execution. Defaults to empty. | {} |
292275
| scheduledAt | string | Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes. | |
293276

294-
## Get execution
295277

296278
```http request
297279
GET https://cloud.appwrite.io/v1/functions/{functionId}/executions/{executionId}
@@ -306,7 +288,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/executions/{executionId}
306288
| functionId | string | **Required** Function ID. | |
307289
| executionId | string | **Required** Execution ID. | |
308290

309-
## Delete execution
310291

311292
```http request
312293
DELETE https://cloud.appwrite.io/v1/functions/{functionId}/executions/{executionId}
@@ -322,7 +303,6 @@ DELETE https://cloud.appwrite.io/v1/functions/{functionId}/executions/{execution
322303
| functionId | string | **Required** Function ID. | |
323304
| executionId | string | **Required** Execution ID. | |
324305

325-
## List variables
326306

327307
```http request
328308
GET https://cloud.appwrite.io/v1/functions/{functionId}/variables
@@ -336,7 +316,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/variables
336316
| --- | --- | --- | --- |
337317
| functionId | string | **Required** Function unique ID. | |
338318

339-
## Create variable
340319

341320
```http request
342321
POST https://cloud.appwrite.io/v1/functions/{functionId}/variables
@@ -352,7 +331,6 @@ POST https://cloud.appwrite.io/v1/functions/{functionId}/variables
352331
| key | string | Variable key. Max length: 255 chars. | |
353332
| value | string | Variable value. Max length: 8192 chars. | |
354333

355-
## Get variable
356334

357335
```http request
358336
GET https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
@@ -367,7 +345,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
367345
| functionId | string | **Required** Function unique ID. | |
368346
| variableId | string | **Required** Variable unique ID. | |
369347

370-
## Update variable
371348

372349
```http request
373350
PUT https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
@@ -384,7 +361,6 @@ PUT https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
384361
| key | string | Variable key. Max length: 255 chars. | |
385362
| value | string | Variable value. Max length: 8192 chars. | |
386363

387-
## Delete variable
388364

389365
```http request
390366
DELETE https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}

docs/graphql.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Graphql Service
22

3-
## GraphQL endpoint
43

54
```http request
65
POST https://cloud.appwrite.io/v1/graphql
@@ -14,7 +13,6 @@ POST https://cloud.appwrite.io/v1/graphql
1413
| --- | --- | --- | --- |
1514
| query | object | The query or queries to execute. | {} |
1615

17-
## GraphQL endpoint
1816

1917
```http request
2018
POST https://cloud.appwrite.io/v1/graphql/mutation

0 commit comments

Comments
 (0)