-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ruilin Ma
authored and
Ruilin Ma
committed
Oct 30, 2023
1 parent
c133d2b
commit 855857f
Showing
11 changed files
with
357 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
start/inventory/src/test/java/it/io/openliberty/guides/inventory/AppContainerConfig.java
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...t/inventory/src/test/java/it/io/openliberty/guides/inventory/InventoryResourceCleint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// tag::copyright[] | ||
/******************************************************************************* | ||
* Copyright (c) 2020, 2023 IBM Corporation and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
// end::copyright[] | ||
package it.io.openliberty.guides.inventory; | ||
|
||
import jakarta.ws.rs.GET; | ||
import jakarta.ws.rs.PUT; | ||
import jakarta.ws.rs.HeaderParam; | ||
import jakarta.ws.rs.PathParam; | ||
import jakarta.ws.rs.Path; | ||
import jakarta.ws.rs.Produces; | ||
|
||
import java.util.List; | ||
import java.util.Properties; | ||
|
||
import jakarta.ws.rs.Consumes; | ||
import jakarta.ws.rs.core.MediaType; | ||
import jakarta.ws.rs.core.Response; | ||
|
||
@Path("/inventory") | ||
public interface InventoryResourceCleint { | ||
@GET | ||
@Path("/systems") | ||
@Produces(MediaType.APPLICATION_JSON) | ||
List<String> getSystems(); | ||
|
||
@GET | ||
@Path("/systems/{hostname}") | ||
@Produces(MediaType.APPLICATION_JSON) | ||
Properties getSystem( | ||
@PathParam("hostname") String hostname); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.