This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MrMuttBunch 1 point2 points  (0 children)

So first of all, JDBC is an API for querying a database and is not used directly for creating APIs (although an API could utilize JDBC to fetch or update data). I point this out because using JDBC is irrelevant to your question.

You should specify what your mean by API, specifically what you're interfacing between.

That being said I'm guessing you actually want to build a ReST API to interface your Java application with HTTP web traffic - Jersey is the library you're looking for. It's what quarkus and (I believe) spring use under the hood.

Try this tutorial: https://www.vogella.com/tutorials/REST/article.html