@@ -97,7 +97,16 @@ If we focus on the dependencies section, you can see the following extensions:
9797----
9898 <dependency>
9999 <groupId>io.quarkus</groupId>
100- <artifactId>quarkus-resteasy-jsonb</artifactId>
100+ <artifactId>quarkus-rest</artifactId>
101+ </dependency>
102+ <dependency>
103+ <groupId>io.rest-assured</groupId>
104+ <artifactId>rest-assured</artifactId>
105+ <scope>test</scope>
106+ </dependency>
107+ <dependency>
108+ <groupId>io.quarkus</groupId>
109+ <artifactId>quarkus-rest-jackson</artifactId>
101110 </dependency>
102111 <dependency>
103112 <groupId>io.quarkus</groupId>
@@ -140,10 +149,10 @@ If we focus on the dependencies section, you can see the following extensions:
140149----
141150package com.redhat.cloudnative;
142151
143- import javax .ws.rs.GET;
144- import javax .ws.rs.Path;
145- import javax .ws.rs.Produces;
146- import javax .ws.rs.core.MediaType;
152+ import jakarta .ws.rs.GET;
153+ import jakarta .ws.rs.Path;
154+ import jakarta .ws.rs.Produces;
155+ import jakarta .ws.rs.core.MediaType;
147156
148157@Path("/hello")
149158public class InventoryResource {
@@ -298,19 +307,19 @@ Now let's write some code and create a domain model and a RESTful endpoint to cr
298307----
299308package com.redhat.cloudnative;
300309
301- import javax .persistence.Entity;
302- import javax .persistence.Id;
303- import javax .persistence.Table;
304- import javax .persistence.Column;
310+ import jakarta .persistence.Entity;
311+ import jakarta .persistence.Id;
312+ import jakarta .persistence.Table;
313+ import jakarta .persistence.Column;
305314import java.io.Serializable;
306315
307- @Entity // <1>
308- @Table(name = "INVENTORY") // <2>
316+ @Entity
317+ @Table(name = "INVENTORY")
309318public class Inventory implements Serializable {
310319
311320 private static final long serialVersionUID = 1L;
312321
313- @Id // <3>
322+ @Id
314323 private String itemId;
315324
316325 @Column
@@ -403,14 +412,14 @@ Quarkus uses JAX-RS standard for building REST services.
403412----
404413package com.redhat.cloudnative;
405414
406- import javax .enterprise.context.ApplicationScoped;
407- import javax .inject.Inject;
408- import javax .persistence.EntityManager;
409- import javax .ws.rs.GET;
410- import javax .ws.rs.Path;
411- import javax .ws.rs.PathParam;
412- import javax .ws.rs.Produces;
413- import javax .ws.rs.core.MediaType;
415+ import jakarta .enterprise.context.ApplicationScoped;
416+ import jakarta .inject.Inject;
417+ import jakarta .persistence.EntityManager;
418+ import jakarta .ws.rs.GET;
419+ import jakarta .ws.rs.Path;
420+ import jakarta .ws.rs.PathParam;
421+ import jakarta .ws.rs.Produces;
422+ import jakarta .ws.rs.core.MediaType;
414423
415424@Path("/api/inventory")
416425@ApplicationScoped
0 commit comments