Search
Friday, Sep 22, 2023
This guide shows you how to use Jakarta EE to make a RESTful web service. To create a RESTful web service using Jakarta EE, we will begin by summarizing what we want to build. We will build a service that will accept an HTTP GET1 request at http://localhost:8080/restfulservice/hello. It will respond with the following JSON payload, as the following listing shows: {"text": "Hello from Jakarta EE"} We can then further customize and improve it according to our needs.
Friday, Sep 29, 2023
This guide shows you how to secure a rest endpoint using Jakarta Authentication. As we delve into securing RESTful web services, let’s first define a basic scenario that we will be working with throughout this article. We are constructing a service that will accept an HTTP GET request at http://localhost:8080/jakartaee-hello-world/rest/hello. In response to this request, our service will return a JSON payload, as shown in the following example: { "hello": "world" } In this article, we will secure this endpoint.
This guide shows you how to store and retrieve data using Jakarta Persistence. We will first begin by summarizing what we want to build. Next, we build a RESTful web service that can consume data, store it in a database using Jakarta Persistence, and serve it as a REST endpoint. For those unfamiliar with RESTful web services, we recommend reading our previous article. We will build an application that handles coffee product data.
This guide aims to walk you through the process of building a simple Servlet application using Jakarta Servlet. We’ll start by outlining what we aim to achieve and then step-by-step guide you through setting up your environment, writing code, and deploying the Servlet application. If you’re new to Servlets or Jakarta EE, this guide should be a great starting point. We’ll develop an application that accomplishes the following: Presents a form asking the user to select their coffee preferences (e.
Back to the top