Skip to content

Commit 67c30a8

Browse files
updated sdk
1 parent 71b67b4 commit 67c30a8

44 files changed

Lines changed: 184 additions & 1841 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Change Log
22

3-
## 20.2.0
4-
5-
* Added optional encrypt parameter for database attributes (Text, Longtext, Mediumtext, Varchar) and corresponding column creation methods to enable encryption at rest. Encrypted attributes/columns cannot be queried.
6-
* Updated API docs and code examples to include the new encrypt option (defaulting to false) across databases and TablesDB sections.
7-
* Updated README compatibility note to reflect Appwrite server version 1.8.x.
8-
* Add support for the new `Backups` service
9-
103
## 20.0.1
114

125
* Fix doc examples with proper formatting
@@ -59,4 +52,4 @@
5952
* Add `dart38` and `flutter332` support to runtime models
6053
* Add `gif` support to `ImageFormat` enum
6154
* Add `upsertDocument` support to `Databases` service
62-
* Add `sequence` support to `Document` model
55+
* Add `sequence` support to `Document` model

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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)
88

9-
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9+
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

β€Ždocs/activities.mdβ€Ž

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

β€Ždocs/backups.mdβ€Ž

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

β€Ždocs/databases.mdβ€Ž

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collection
264264
| Field Name | Type | Description | Default |
265265
| --- | --- | --- | --- |
266266
| databaseId | string | **Required** Database ID. | |
267-
| collectionId | string | **Required** Collection ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
267+
| collectionId | string | **Required** Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). | |
268268
| key | string | Attribute Key. | |
269269
| required | boolean | Is attribute required? | |
270270
| default | boolean | Default value for attribute when not provided. Cannot be set when attribute is required. | |
@@ -729,6 +729,24 @@ POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collection
729729
| onDelete | string | Constraints option | restrict |
730730

731731

732+
```http request
733+
PATCH https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship/{key}
734+
```
735+
736+
** Update relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
737+
**
738+
739+
### Parameters
740+
741+
| Field Name | Type | Description | Default |
742+
| --- | --- | --- | --- |
743+
| databaseId | string | **Required** Database ID. | |
744+
| collectionId | string | **Required** Collection ID. | |
745+
| key | string | **Required** Attribute Key. | |
746+
| onDelete | string | Constraints option | |
747+
| newKey | string | New Attribute Key. | |
748+
749+
732750
```http request
733751
POST https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/attributes/string
734752
```
@@ -918,24 +936,6 @@ DELETE https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collecti
918936
| key | string | **Required** Attribute Key. | |
919937

920938

921-
```http request
922-
PATCH https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship
923-
```
924-
925-
** Update relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
926-
**
927-
928-
### Parameters
929-
930-
| Field Name | Type | Description | Default |
931-
| --- | --- | --- | --- |
932-
| databaseId | string | **Required** Database ID. | |
933-
| collectionId | string | **Required** Collection ID. | |
934-
| key | string | **Required** Attribute Key. | |
935-
| onDelete | string | Constraints option | |
936-
| newKey | string | New Attribute Key. | |
937-
938-
939939
```http request
940940
GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents
941941
```
@@ -951,6 +951,7 @@ GET https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionI
951951
| 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. | [] |
952952
| transactionId | string | Transaction ID to read uncommitted changes within the transaction. | |
953953
| total | boolean | When set to false, the total count returned will be 0 and will not be calculated. | 1 |
954+
| ttl | integer | TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours). | 0 |
954955

955956

956957
```http request

β€Ždocs/examples/activities/get-event.mdβ€Ž

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

β€Ždocs/examples/activities/list-events.mdβ€Ž

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

β€Ždocs/examples/backups/create-archive.mdβ€Ž

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

β€Ždocs/examples/backups/create-policy.mdβ€Ž

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

β€Ždocs/examples/backups/create-restoration.mdβ€Ž

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

0 commit comments

Comments
Β (0)