public interface WebServicesController<T extends Model<ID>,ID extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<?> |
create(T entity,
javax.servlet.http.HttpServletRequest request)
POST / - Attempts to create a new entity record. |
org.springframework.http.HttpEntity<?> |
delete(ID id,
javax.servlet.http.HttpServletRequest request)
DELETE /{id} - Attempts to delete a single entity record. |
org.springframework.http.HttpEntity<?> |
find(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<T> pagedResourcesAssembler,
javax.servlet.http.HttpServletRequest request)
GET / - Fetches one or more records, with optional filtering, paging, or
sorting applied. |
org.springframework.http.HttpEntity<?> |
findById(ID id,
javax.servlet.http.HttpServletRequest request)
GET /{id} - Fetches a single record by its primary ID. |
org.springframework.http.HttpEntity<?> |
findDistinct(String field,
javax.servlet.http.HttpServletRequest request)
GET /distinct - Fetches a list of distinct field values. |
org.springframework.http.HttpEntity<?> |
head(javax.servlet.http.HttpServletRequest request)
HEAD /** - Tests whether the URL endpoint is available. |
org.springframework.http.HttpEntity<?> |
options(javax.servlet.http.HttpServletRequest request)
OPTIONS /** - Returns basic request information about URL the endpoint. |
org.springframework.http.HttpEntity<?> |
update(T entity,
ID id,
javax.servlet.http.HttpServletRequest request)
PUT /{id} - Attempts to update an existing entity record. |
org.springframework.http.HttpEntity<?> findById(ID id, javax.servlet.http.HttpServletRequest request)
GET /{id} - Fetches a single record by its primary ID.id - request - org.springframework.http.HttpEntity<?> findDistinct(String field, javax.servlet.http.HttpServletRequest request)
GET /distinct - Fetches a list of distinct field values.field - request - org.springframework.http.HttpEntity<?> find(org.springframework.data.domain.Pageable pageable,
org.springframework.data.web.PagedResourcesAssembler<T> pagedResourcesAssembler,
javax.servlet.http.HttpServletRequest request)
GET / - Fetches one or more records, with optional filtering, paging, or
sorting applied.pageable - pagedResourcesAssembler - request - org.springframework.http.HttpEntity<?> head(javax.servlet.http.HttpServletRequest request)
HEAD /** - Tests whether the URL endpoint is available.request - org.springframework.http.HttpEntity<?> options(javax.servlet.http.HttpServletRequest request)
OPTIONS /** - Returns basic request information about URL the endpoint.request - org.springframework.http.HttpEntity<?> create(T entity, javax.servlet.http.HttpServletRequest request)
POST / - Attempts to create a new entity record.entity - request - org.springframework.http.HttpEntity<?> update(T entity, ID id, javax.servlet.http.HttpServletRequest request)
PUT /{id} - Attempts to update an existing entity record.entity - id - request - org.springframework.http.HttpEntity<?> delete(ID id, javax.servlet.http.HttpServletRequest request)
DELETE /{id} - Attempts to delete a single entity record.id - request - Copyright © 2016. All rights reserved.