@Path(value="/stockservice/") @Consumes(value="application/json") @Produces(value="application/json") public class StockService extends Object
| Constructor and Description |
|---|
StockService() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailableStockCount(String id,
javax.ws.rs.core.HttpHeaders headers) |
void |
init() |
public void init()
@GET
@Path(value="/stock/{id}/")
public int getAvailableStockCount(@PathParam(value="id")
String id,
@Context
javax.ws.rs.core.HttpHeaders headers)
Copyright © 2018 WSO2 Inc. All rights reserved.