chore: clean up docs

This commit is contained in:
Torsten Dittmann
2022-06-23 12:04:54 +02:00
parent 3f1b906de0
commit 12cd0ee839
627 changed files with 1790 additions and 6633 deletions
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_boolean_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document', read: ["role:all"], write: ["role:all"])
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {})
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_email_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_enum_attribute(collection_id: '[COLLECTION_ID]', key: '', elements: [], required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_float_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_index(collection_id: '[COLLECTION_ID]', key: '', type: 'key', attributes: [])
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_integer_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_ip_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_string_attribute(collection_id: '[COLLECTION_ID]', key: '', size: 1, required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.create_url_attribute(collection_id: '[COLLECTION_ID]', key: '', required: false)
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.delete_attribute(collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.delete_collection(collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.delete_index(collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.get_attribute(collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.get_collection(collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.get_index(collection_id: '[COLLECTION_ID]', key: '')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.list_attributes(collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.list_collections()
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.list_documents(collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.list_indexes(collection_id: '[COLLECTION_ID]')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]', permission: 'document')
puts response.inspect
@@ -1,14 +0,0 @@
require 'appwrite'
client = Appwrite::Client.new
client
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
database = Appwrite::Database.new(client)
response = database.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {})
puts response.inspect