Does Java – PostgreSQL support rest API?
•
Java
I wonder if PostgreSQL supports rest, or are there other ways to implement it?
Solution
Postgres does not support out of the box rest interfaces But there is an early draft about adding one: Postgres wiki, so Postgres may add one in a future version
There are two possible solutions:
>Use third-party tools to provide rest API for Postgres Restsql is an example. > Implement your own web service layer
It depends on which way you want to go:
(2) Give you maximum control You can design the API the way you want Modern Java frameworks (JPA, Jax - RS, Jackson, etc.) make it easy and effective to create lightweight API layers
(1) If you only need the basic method of accessing the database through rest, it is feasible
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码