August 14, 2022

RESTful Java client with java.net.URL

In this tutorial, we show you how to create a RESTful Java client with Java build-in HTTP client library. It’s simple to use and good enough to perform basic operations for REST service. The RESTful services from last “Jackson + JAX-RS” article will be reused, and we will use “java.net.URL” and “java.net.HttpURLConnection” to create a simple Java client to send “GET” and “POST” request.

RESTful Java client with java.net.URL Read More

Crud operation with REST API using JAX-RS

Crud operation basically refers to create, read, update and delete as insert a data or record, get or search data, modify data or record and delete a record. Crud has standardized the use of HTTP action verbs: POST as an insert data, GET as a read/retrieve data, PUT as an update data, DELETE as a delete data . JAX-RS is a JAVA-based programming language API and specification that allows RESTful Web Services to be established.

Crud operation with REST API using JAX-RS Read More

Overview of the core JAX-RS concepts, important annotations

This tutorial presents an overview of the core JAX-RS concepts, important annotations. JAX-RS is Java API for RESTful Web Services (JAX-RS) is a Java programming language API spec that provides support in creating web services according to the Representational State Transfer (REST) architectural pattern. There are two main implementations of JAX-RS API: Jersey Framework and RESTEasy.

Overview of the core JAX-RS concepts, important annotations Read More

Principles & Best practices of REST API Design

REST API (also known as RESTful API) is an application programming interface (API) that adheres to the REST architectural conventions and constraints used in client-server communication. REST stands for REpresentational State Transfer, it was created by computer scientist Roy Fielding. REST API is no longer a strange concept to all dev brothers from frontend to backend. However, to understand and follow REST’s standard guidelines, many of you may still not know. So in this article, I will share these conventions.

Principles & Best practices of REST API Design Read More

Quickstart RESTFul application with Spring Boot and Jersey

Spring is a popular Java application framework for creating enterprise applications. Spring Boot is the next step in evolution of Spring framework. It helps create stand-alone, production-grade Spring based applications with minimal effort. It promotes using the convention over configuration principle over XML configurations. Spring Boot Jersey tutorial shows how to set up a simple RESTFul application with Jersey in a Spring Boot application. Jersey is an alternative to Spring RESTFul applications created with @RestController.

Quickstart RESTFul application with Spring Boot and Jersey Read More