Gentics Mesh – API token

Notes on built-in APIs: https://getmesh.io/docs/api/ Generate API token Log in Get user’s uuid Get API Token for the user Log in api/v2/auth/login method: get headers: Content-Type: application/json json: {“username”: “user”,“password”: “password”} Response: { “token” : “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyVXVpZCI6IjY2ZWIzNjEyNDI0YTRlYjliNjdkNzllYjA2NWY0OTBmIiwiaWF0IjoxNjIwMjEzNDAxLCJleHAiOjE2MjAyMTM3MDF9.HH7qKm7XL_kRzDAepbhl59RRPVEjm_ZJz4Vn3AfAGsQ” } Get user’s uuid […]

Running a Java app for a long time… after logging out.

Copied this init script: https://gustavostraube.wordpress.com/2009/11/05/writing-an-init-script-for-a-java-application/ then: chmod 755 run-script.sh ./run-script.sh start # Start ./run-script.sh stop # Stop ./run-script.sh restart # Restart Some discussions: https://stackoverflow.com/questions/534648/how-to-daemonize-a-java-program https://stackoverflow.com/questions/958249/whats-the-difference-between-nohup-and-a-daemon