DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Aggregating REST APIs Calls Using Apache Camel
  • User-Friendly API Publishing and Testing With Retrofit
  • Translating OData Queries to MongoDB in Java With Jamolingo
  • GraphQL vs REST API: Which Is Better for Your Project in 2025?

Trending

  • When One MVP Is Really Four Systems: A Better Way to Plan Multi-Role Apps
  • The Big Data Architecture Blueprint: Core Storage, Integration, and Governance Patterns
  • Testing AI-Infused Apps: A Dual-Layer Framework for AI Quality Assurance
  • The Hidden Cost of AI Tokens: Engineering Patterns for 10x Resource Efficiency
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Choosing a Library to Build a REST API in Java

Choosing a Library to Build a REST API in Java

Java library for restful API, tech stack choices for building REST API in Java.

By 
Siddhartha Bhattacharjee user avatar
Siddhartha Bhattacharjee
·
Sep. 25, 21 · Tutorial
Likes (8)
Comment
Save
Tweet
Share
18.8K Views

Join the DZone community and get the full member experience.

Join For Free

API is not a new concept in software engineering. In fact, SOAP was invented in 1998 which was very popular back then, it is still used today in large enterprise software. Representational State Transfer (REST) was proposed by Roy Fielding in 2000. Which became very popular due to its simplicity and in the last decade the adoption of RESTful API was tremendously seen in existing enterprise software as well as new software developed.

While building RESTful API in java,  we have many frameworks and libraries to choose from. In this article, we will quickly cover some of the questions that one needs to ask before building RESTful API in java.

Important Questions To Start With

  • Do we want JAX-RS compliant implementation?
  • Do we have any preference for the Application Server?
  • How the ecosystem looks like do we need any framework support?

Important Questions To Start With

Jax-RS Compliance

Choose something that is JAX-RS Compliant then we have choices like

Jersey

Rest Easy

Apache CXF

Restlet

Some of the non-JAX-RS Compliant options are 

SpringBoot

Spring Web Services

FrameWork Support

Apache CXF and SpringBoot are more than just libraries they provide a lot of tooling and production-ready features which are essential for rapid development and operational aspect of API.

Server Environment 

It is also worth mentioning that the target server environment plays a crucial role. Even though many libraries are designed to be portable in any Java environment but in reality choosing the right library makes the job easy especially when it comes to maintaining the libraries.

REST Web Protocols API Library Java (programming language) Build (game engine)

Opinions expressed by DZone contributors are their own.

Related

  • Aggregating REST APIs Calls Using Apache Camel
  • User-Friendly API Publishing and Testing With Retrofit
  • Translating OData Queries to MongoDB in Java With Jamolingo
  • GraphQL vs REST API: Which Is Better for Your Project in 2025?

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook