@Path(value="/customer") public class CustomerService extends Object
| Constructor and Description |
|---|
CustomerService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getCustomer(String id)
Retrieves a customer record for a given customer ID.
|
@GET
@Path(value="/{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getCustomer(@PathParam(value="id")
String id)
throws CustomerNotFoundException
id - Customer ID will be taken from the path parameter.CustomerNotFoundExceptionCopyright © 2025 WSO2. All rights reserved.