@Path(value="/stocks")
public interface StockService
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createStock(Stock stock)
Creates new stock.
|
javax.ws.rs.core.Response |
deleteStock(long id)
Deletes the stock
|
Stock |
getStock(long id)
Retrieves the stock by it's id.
|
List<Stock> |
getStocks(int startIndex,
int size)
Retrieves the stock list.
|
void |
updateStock(long id,
Stock stock)
Updates the stock.
|
@Path(value="/") javax.ws.rs.core.Response createStock(Stock stock)
stock - the stock to create@Path(value="/{id}")
void updateStock(long id,
Stock stock)
id - stock idstock - the stock to update@Path(value="/{id}")
Stock getStock(long id)
id - the stock id@Path(value="/") List<Stock> getStocks(int startIndex, int size)
startIndex - the starting indexsize - the number stocks to retrieve@Path(value="/{id}")
javax.ws.rs.core.Response deleteStock(long id)
id - the stock idCopyright © 2015 JBoss by Red Hat. All rights reserved.