Package org.ehrbase.rest.admin
Class AdminContributionController
java.lang.Object
org.ehrbase.rest.BaseController
org.ehrbase.rest.admin.AdminContributionController
@ConditionalOnProperty(prefix="admin-api",
name="active")
@RestController
@RequestMapping(path="${admin-api.context-path:/rest/admin}/ehr",
produces={"application/json","application/xml"})
public class AdminContributionController
extends BaseController
Admin API controller for Contribution related data. Provides endpoints to update and remove Contributions in
database physically.
-
Field Summary
Fields inherited from class org.ehrbase.rest.BaseController
ACCEPT, API_CONTEXT_PATH_WITH_VERSION, apiContextPathWithVersion, COMPOSITION, CONTENT_TYPE, CONTRIBUTION, DEFINITION, DIRECTORY, EHR, EHR_STATUS, ETAG, IF_MATCH, IF_NONE_MATCH, LAST_MODIFIED, LOCATION, OPENEHR_AUDIT_DETAILS, OPENEHR_VERSION, PREFER, QUERY, REQ_ACCEPT, REQ_CONTENT_TYPE, REQ_CONTENT_TYPE_BODY, REQ_OPENEHR_AUDIT, REQ_OPENEHR_VERSION, REQ_PREFER, RESP_CONTENT_TYPE_DESC, RESP_ETAG_DESC, RESP_LAST_MODIFIED_DESC, RESP_LOCATION_DESC, RESP_NOT_ACCEPTABLE_DESC, RESP_UNSUPPORTED_MEDIA_DESC, REST_OPERATION, RETURN_MINIMAL, RETURN_REPRESENTATION, TEMPLATE -
Constructor Summary
ConstructorsConstructorDescriptionAdminContributionController(EhrService ehrService, ContributionService contributionService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.ehrbase.response.openehr.admin.AdminDeleteResponseData>deleteContribution(String ehrId, String contributionId) org.springframework.http.ResponseEntity<org.ehrbase.response.openehr.admin.AdminUpdateResponseData>updateContribution(String ehrId, String contributionId) Methods inherited from class org.ehrbase.rest.BaseController
add2MetaMap, createLocationUri, decodeVersionAtTime, encodePath, enrichRequestAttribute, extractCompositionFormat, extractVersionedObjectUidFromVersionUid, extractVersionFromVersionUid, getCompositionVersionedObjectUidString, getContextPath, getContributionVersionedObjectUidString, getEhrUuid, resolveContentType, resolveContentType
-
Constructor Details
-
AdminContributionController
@Autowired public AdminContributionController(EhrService ehrService, ContributionService contributionService)
-
-
Method Details
-
updateContribution
@PutMapping(path="/{ehr_id}/contribution/{contribution_id}", consumes={"application/json","application/xml"}) public org.springframework.http.ResponseEntity<org.ehrbase.response.openehr.admin.AdminUpdateResponseData> updateContribution(@PathVariable("ehr_id") String ehrId, @PathVariable("contribution_id") String contributionId) -
deleteContribution
-