Hi, Jan Yes, I am using the database name in the front of the URL. But in that case, the 'current_database' route is not relevant at all. So, my question was more to understand why that route exists if there isn't a (easy) way to change the current database. =)
Also, thanks for pointing out that is would use the system database if none is supplied. I was wondering if the '_api/collection' would show all the available collections in the system. Slowly, but things are going well :) Cheers Alberto available collections in the system or just On Tue, Apr 30, 2019 at 5:20 PM Jan <[email protected]> wrote: > Hi Alberto, > > HTTP-wise, drivers can switch to another database by just using the > database name as part of the URL path part. > > For example, > > - HTTP GET /_db/_system/_api/collection will use the "_system" database > - HTTP GET /_db/abcdef/_api/collection will use the "abcdef" database > etc. > > Please note that the "/_db/<name of database>" part is optional. Omitting > it will make the request use the "_system" database. > > Best regards > Jan > > Am Dienstag, 30. April 2019 17:59:06 UTC+2 schrieb Alberto Simoes: >> >> Hi >> >> I am a new user of ArangoDB, and I am trying to implement a up-to-date >> Perl interface to the REST API. >> There is a route to get the current database. >> But I am not finding how the current database can be changed. >> >> Thank you >> Alberto >> > -- > You received this message because you are subscribed to the Google Groups > "ArangoDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Alberto Simões -- You received this message because you are subscribed to the Google Groups "ArangoDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
