Class PeopleRestService


  • @Path("/people")
    public class PeopleRestService
    extends Object
    • Constructor Detail

      • PeopleRestService

        public PeopleRestService()
    • Method Detail

      • PeopleRestService

        public void PeopleRestService()
      • getPeople

        @Produces("application/json")
        @GET
        public Collection<Person> getPeople​(@QueryParam("page") @DefaultValue("1")
                                            int page)
      • addPerson

        @Produces("application/json")
        @PUT
        public Person addPerson​(@FormParam("email")
                                String email)
      • getPeople

        @Produces("application/json")
        @Path("/{email}")
        @GET
        public Person getPeople​(@PathParam("email")
                                String email)
      • addPersonQueryParam

        @Produces({"application/json","application/x-www-form-urlencoded"})
        @POST
        public javax.ws.rs.core.Response addPersonQueryParam​(@Context
                                                             javax.ws.rs.core.UriInfo uriInfo,
                                                             @QueryParam("email")
                                                             String email,
                                                             @QueryParam("firstName")
                                                             String firstName,
                                                             @QueryParam("lastName")
                                                             String lastName)
      • checkPerson

        @Produces("application/json")
        @Path("/{email}")
        @HEAD
        public javax.ws.rs.core.Response checkPerson​(@PathParam("email")
                                                     String email)
      • updatePersonQueryParam

        @Produces("application/json")
        @Path("/{email}")
        @PUT
        public Person updatePersonQueryParam​(@PathParam("email")
                                             String email,
                                             @QueryParam("firstName")
                                             String firstName,
                                             @QueryParam("lastName")
                                             String lastName)
      • deletePerson

        @Path("/{email}")
        @DELETE
        public javax.ws.rs.core.Response deletePerson​(@PathParam("email")
                                                      String email)
      • getOptions

        @Produces("application/json")
        @Path("/options")
        @OPTIONS
        public javax.ws.rs.core.Response getOptions​(@Context
                                                    javax.ws.rs.core.HttpHeaders headers,
                                                    @Context
                                                    javax.ws.rs.core.Request request)