T - the generic type@Consumes(value="application/json") @Produces(value="application/json") public class JKMatureJpaRestService<T extends com.jk.core.jpa.BaseEntity> extends Object
| Constructor and Description |
|---|
JKMatureJpaRestService()
Instantiates a new JK mature jpa rest service.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
add(T stack)
Adds the.
|
javax.ws.rs.core.Response |
delete(String id)
Delete.
|
javax.ws.rs.core.Response |
get()
Gets the.
|
javax.ws.rs.core.Response |
get(String id)
Gets the.
|
javax.ws.rs.core.Response |
update(String id,
T stack)
Update.
|
public JKMatureJpaRestService()
@GET public javax.ws.rs.core.Response get()
@GET
@Path(value="/{id}")
public javax.ws.rs.core.Response get(@PathParam(value="id")
String id)
id - the id@POST public javax.ws.rs.core.Response add(T stack)
stack - the stack@PUT
@Path(value="/{id}")
public javax.ws.rs.core.Response update(@PathParam(value="id")
String id,
T stack)
id - the idstack - the stack@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response delete(@PathParam(value="id")
String id)
id - the idCopyright © 2023 Smart-Cloud. All rights reserved.