Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from appwrite.client import Client
from appwrite.services.foo import Foo
from appwrite.services.bar import Bar
from appwrite.services.general import General
client = Client()
foo = Foo(client)
bar = Bar(client)
general = General(client)
client.add_header('Origin', 'http://localhost')
client.set_self_signed()
# Foo Tests
print("GET:/v1/mock/tests/foo:passed")
response = foo.post('string', 123, ['string in array'])
print(response['result'])
response = foo.put('string', 123, ['string in array'])
print(response['result'])