Package com.sivalabs.springdatarest.model

Examples of com.sivalabs.springdatarest.model.ContactsResponse


 
  @RequestMapping(value="/{userId}/contacts", produces=MediaType.APPLICATION_JSON_VALUE)
  @ResponseBody
  public HttpEntity<ContactsResponse> getContacts(@PathVariable("userId") int userId) {
    List<Contact> contacts = userService.findUserContacts(userId);
    ContactsResponse contactsResponse = new ContactsResponse(contacts);
    return new HttpEntity<ContactsResponse>(contactsResponse);
  }
View Full Code Here

TOP

Related Classes of com.sivalabs.springdatarest.model.ContactsResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.