Skip to content

Commit

Permalink
Corrected duplicate code section
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgang-wiedermann committed May 24, 2016
1 parent 3e59b4b commit 83df01c
Showing 1 changed file with 3 additions and 60 deletions.
63 changes: 3 additions & 60 deletions README.md
Expand Up @@ -87,6 +87,9 @@ a useful way to check the validity of the content of the attributes
within the object.

```java
/*
* de/ww/sample/CustomerRepository.java
*/
package de.ww.sample;

import java.util.ArrayList;
Expand Down Expand Up @@ -222,66 +225,6 @@ public class Customer implements Serializable {
}
}

/*
* de/ww/sample/CustomerRepository.java
*/
package de.ww.sample;

import java.util.ArrayList;
import javax.ws.rs.Path;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.DELETE;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.PathParam;
import javax.ws.rs.Consumes;
import de.ww.sample.entities.Customer;

/**
* Generated Interface for CustomerRepository with JAX-RS Annotations
*/
@Path("/api")
public interface CustomerRepository {

/**
* @param id
* @return Customer
*/
@GET
@Path("/customer/{id}")
@Produces("application/json")
public Customer getCustomerById(@PathParam("id") int id);

/**
* @param prename
* @param surname
* @return ArrayList<customer>
*/
@GET
@Path("/customer")
@Produces("application/json")
public ArrayList<customer> findCustomer(@QueryParam("prename") String prename, @QueryParam("surname") String surname);

/**
* @param c
* @return Customer
*/
@POST
@Path("/customer")
@Produces("application/json")
@Consumes("application/json")
public Customer createCustomer(Customer c);

/**
* @param id
* @return int
*/
@DELETE
@Path("/customer/{id}")
public int deleteCustomer(@PathParam("id") int id);
}

```

## Call the client proxy code generation
Expand Down

0 comments on commit 83df01c

Please sign in to comment.