chore: generate specs and examples

This commit is contained in:
Chirag Aggarwal
2025-04-30 08:14:48 +00:00
parent bd50baff85
commit e3e0fed7ba
5465 changed files with 89635 additions and 2278 deletions
@@ -0,0 +1,30 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://example.com/v1") // Your API Endpoint
.setProject("<YOUR_PROJECT_ID>") // Your project ID
.setKey("<YOUR_API_KEY>"); // Your secret API key
Databases databases = new Databases(client);
databases.createIntegerAttribute(
"<DATABASE_ID>", // databaseId
"<COLLECTION_ID>", // collectionId
"", // key
false, // required
0, // min (optional)
0, // max (optional)
0, // default (optional)
false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);