<s> from arangodb . api import Client <EOL> class Endpoint ( object ) : <EOL> """<STR_LIT>""" <EOL> @ classmethod <EOL> def all ( cls ) : <EOL> """<STR_LIT>""" <EOL> api = Client . instance ( ) . api <EOL> endpoint_list = api . endpoint . get ( ) <EOL> return endpoint_list <EOL> @ classmethod <EOL> def create ( cls , url , databases ) : <EOL> """<STR_LIT>""" <EOL> api = Client . instance ( ) . api <EOL> result = api . endpoint . post ( data = { <EOL> '<STR_LIT>' : url , <EOL> '<STR_LIT>' : databases , <EOL> } ) <EOL> return result <EOL> @ classmethod <EOL> def destroy ( cls , url ) : <EOL> """<STR_LIT>""" <EOL> api = Client . instance ( ) . api <EOL> api . endpoint ( url ) . delete ( ) </s>
