Re: [basex-talk] Testing if a database exists and if some files exist

2020-07-29 Thread Geoff Alexander
I don't know if this is the best way. To test if a database exists, I simply send a GET request to https://://rest/ and check the response status code. A 200 OK response indicates that the database exists and a 404 Not Found response means that the database doesn't exists. Similarly, I send a

[basex-talk] Testing if a database exists and if some files exist

2020-07-29 Thread Ramzi Hammouda
Hello BaseX team, I'm building a C# application, I'm using Rest APIs, how can I test if a database exists or not when I launch my application, and create necessary db/files when they are missing ? Thanks, Ramzi P Respectons ensemble l'environnement. N'imprimez ce message que si n?cessaire.