How to make rest microservice write incoming requests as logs to postgre db?

I guess I would ask you, what happened when you tried that?

Speaking generally, a REST service is “just” a set of URL endpoints. They’re designed to be used by other code, but there’s nothing stopping you from accessing them in your browser.

For example, here is a simple endpoint that I use:

https://happycoding.io/api/site.json

That URL is used by JavaScript to get data about the site, but you can also visit it in your web browser.

I wrote more about this here: