I’ve created an example Springboot project where I use a Postgresql database which is hosted online with Aiven. The whole project is running on OpenShift and so far everything works as planned.
I now want to test my API with Postman however I cannot find the correct URL to access the DB. It also doesn’t work via web-browser so I guess I have the wrong URL. I am able to connect via pgAdmin tool and also select or insert things into my DB table. I am also able to use GET, etc. in Postman with the Aiven API collection to get my project details, available DBs etc.
Example URL for available DBs: https://api.aiven.io/v1/project/<project_name>/service/<service_name>/db returns me my DB student
if I add “/student” for example the response is 405: Method Not Allowed.
if I replace “db” with “student” the response is 404: Not Found.
I guess the code isn’t really the problem, as everything runs smoothly in the background so what am I missing?
Thanks in advance!