Interface ProjectionReferencedApi<P>
- Type Parameters:
P
- The projection type
public interface ProjectionReferencedApi<P>
Marker interface for service API rest controller components. Generally used in combination with
the
EnableJpaTrackableFlows
annotations. Implementing a custom rest controller with this
interface will cause the system to back off and not try to dynamically generate an endpoint class
for the Trackable flow.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(javax.servlet.http.HttpServletRequest request, ContextInfo context, P req) void
delete
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id) org.springframework.data.domain.Page<P>
readAll
(javax.servlet.http.HttpServletRequest request, ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) readById
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id) replace
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id, P req) update
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id, P req)
-
Method Details
-
readAll
org.springframework.data.domain.Page<P> readAll(javax.servlet.http.HttpServletRequest request, @ContextOperation(READ) ContextInfo context, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) -
create
P create(javax.servlet.http.HttpServletRequest request, @ContextOperation(CREATE) ContextInfo context, @RequestBody P req) -
readById
P readById(javax.servlet.http.HttpServletRequest request, @ContextOperation ContextInfo context, @PathVariable("id") String id) -
update
P update(javax.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) ContextInfo context, @PathVariable("id") String id, @RequestBody P req) -
replace
P replace(javax.servlet.http.HttpServletRequest request, @ContextOperation(UPDATE) ContextInfo context, @PathVariable("id") String id, @RequestBody P req) -
delete
void delete(javax.servlet.http.HttpServletRequest request, @ContextOperation(DELETE) ContextInfo context, @PathVariable("id") String id)
-