@Path(value="/stockquote") public class StockQuoteService extends Object
| Constructor and Description |
|---|
StockQuoteService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getQuote(String symbol)
Retrieve a stock for a given symbol.
|
@GET
@Path(value="/{symbol}")
@Produces(value={"application/json","text/xml"})
public javax.ws.rs.core.Response getQuote(@PathParam(value="symbol")
String symbol)
symbol - Stock symbol will be taken from the path parameter.Copyright © 2020 WSO2. All rights reserved.