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

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Aggregating REST APIs Calls Using Apache Camel
  • User-Friendly API Publishing and Testing With Retrofit
  • Reactive Elasticsearch With Quarkus
  • Build a REST API With Just 2 Classes in Java and Quarkus

Trending

  • Beyond Linguistics: Real-Time Domain Event Mapping with WebSocket and Spring Boot
  • AI, ML, and Data Science: Shaping the Future of Automation
  • Apache Doris vs Elasticsearch: An In-Depth Comparative Analysis
  • A Guide to Developing Large Language Models Part 1: Pretraining
  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.3K 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
  • Reactive Elasticsearch With Quarkus
  • Build a REST API With Just 2 Classes in Java and Quarkus

Partner Resources

×

Comments

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

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

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 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: