Class HistoryChangeController

java.lang.Object
org.qubership.atp.itf.lite.backend.controllers.HistoryChangeController

@RestController public class HistoryChangeController extends Object
  • Constructor Details

    • HistoryChangeController

      public HistoryChangeController()
  • Method Details

    • getAllHistory

      @RequestMapping(method=GET, value="/atp-itf-lite/api/v1/history/{projectId}/{itemType}/{id}", produces="application/json") @PreAuthorize("@entityAccess.checkAccess(#itemType, #projectId, \'READ\')") public org.springframework.http.ResponseEntity<HistoryItemResponseDto> getAllHistory(@PathVariable UUID projectId, @PathVariable String itemType, @PathVariable UUID id, @RequestParam(value="offset",required=false,defaultValue="0") Integer offset, @RequestParam(value="limit",required=false,defaultValue="10") Integer limit)
      Get all history.
    • getEntitiesByVersion

      @RequestMapping(method=GET, value="/atp-itf-lite/api/v1/entityversioning/{projectId}/{itemType}/{id}", produces="application/json") @PreAuthorize("@entityAccess.checkAccess(#itemType, #projectId, \'READ\')") public org.springframework.http.ResponseEntity<List<CompareEntityResponseDto>> getEntitiesByVersion(@PathVariable UUID projectId, @PathVariable String itemType, @PathVariable UUID id, @RequestParam List<String> versions)
      Get entities by version.
    • restoreToRevision

      @RequestMapping(method=POST, value="/atp-itf-lite/api/v1/history/restore/{projectId}/{itemType}/{id}/revision/{revisionId}") @PreAuthorize("@entityAccess.checkAccess(#itemType,#projectId,\'UPDATE\')") public org.springframework.http.ResponseEntity<Void> restoreToRevision(@PathVariable UUID projectId, @PathVariable String itemType, @PathVariable UUID id, @PathVariable Integer revisionId)
      Restore to revision.