Package org.example.service
Class StockQuoteService
- java.lang.Object
-
- org.example.service.StockQuoteService
-
@Path("/stockquote") public class StockQuoteService extends java.lang.ObjectThis is the Microservice resource class. See https://github.com/wso2/msf4j#getting-started for the usage of annotations.
-
-
Constructor Summary
Constructors Constructor Description StockQuoteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetQuote(java.lang.String symbol)Retrieve a stock for a given symbol.
-
-
-
Method Detail
-
getQuote
@GET @Path("/{symbol}") @Produces({"application/json","text/xml"}) public javax.ws.rs.core.Response getQuote(@PathParam("symbol") java.lang.String symbol)Retrieve a stock for a given symbol. http://localhost:8080/stockquote/IBM- Parameters:
symbol- Stock symbol will be taken from the path parameter.- Returns:
- Response
-
-