public class CustomerRest extends Object
Constructor and Description |
---|
CustomerRest() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createCustomer(String id,
String id_title,
String firstname,
String lastname,
String has_account,
String account_login,
String account_guid,
String email,
String is_email_verified,
String mobile_phone,
String is_mobile_phone_verified,
String extras_attributes,
String accept,
String format) |
javax.ws.rs.core.Response |
deleteCustomer(String strId,
String accept,
String format) |
javax.ws.rs.core.Response |
getCustomer(String strId,
String accept,
String format) |
String |
getCustomerJson(String strId)
Gets a resource in JSON format
|
javax.ws.rs.core.Response |
getCustomers(String accept,
String format) |
String |
getCustomersJson()
Gets all resources list in JSON format
|
String |
getCustomersXml()
Gets all resources list in XML format
|
String |
getCustomerXml(String strId)
Gets a resource in XML format
|
public javax.ws.rs.core.Response getCustomers(@HeaderParam(value="Accept") String accept, String format) throws IOException
IOException
public String getCustomersXml()
public String getCustomersJson()
public javax.ws.rs.core.Response getCustomer(String strId, @HeaderParam(value="Accept") String accept, String format) throws IOException
IOException
public String getCustomerXml(String strId)
strId
- The resource IDpublic String getCustomerJson(String strId)
strId
- The resource IDpublic javax.ws.rs.core.Response deleteCustomer(String strId, @HeaderParam(value="Accept") String accept, String format) throws IOException
IOException
public javax.ws.rs.core.Response createCustomer(String id, String id_title, String firstname, String lastname, String has_account, String account_login, String account_guid, String email, String is_email_verified, String mobile_phone, String is_mobile_phone_verified, String extras_attributes, @HeaderParam(value="Accept") String accept, String format) throws IOException
IOException
Copyright © 2016 City of Paris. All rights reserved.