Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.pentos.cxf.demo.service;
- import javax.ws.rs.Consumes;
- import javax.ws.rs.GET;
- import javax.ws.rs.Produces;
- import javax.ws.rs.core.MediaType;
- import de.pentos.cxf.demo.data.Test;
- /**
- * @author mburchard
- *
- */
- @Produces(MediaType.APPLICATION_JSON)
- @Consumes(MediaType.APPLICATION_JSON)
- public class Endpoint {
- public Endpoint() {
- }
- @GET
- public Test getTest() {
- return new Test().setFirstname("User").setLastname("123");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement