Package de.trustable.ca3s.core.web.rest
Class CAConnectorConfigViewResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.CAConnectorConfigViewResource
-
-
Constructor Summary
Constructors Constructor Description CAConnectorConfigViewResource(CAConnectorConfigService cAConnectorConfigService, CaConnectorConfigUtil caConnectorConfigUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<CaConnectorConfigView>createPipeline(@Valid CaConnectorConfigView caConnectorConfigView)POST /pipelineViews: Create a new CAConnectorConfig.org.springframework.http.ResponseEntity<Void>deleteCaConnectorConfig(Long id)DELETE /ca-connector-configViews/:id: delete the "id" CaConnectorConfigView.List<CaConnectorConfigView>getAllCaConnectorConfigs()GET /ca-connector-configViews: get all the CaConnectorConfigs.org.springframework.http.ResponseEntity<CaConnectorConfigView>getCaConnectorConfig(Long id)GET /ca-connector-configViews/:id: get the "id" CaConnectorConfigView.org.springframework.http.ResponseEntity<CaConnectorConfigView>updatePipeline(@Valid CaConnectorConfigView caConnectorConfigView)PUT /ca-connector-configViews: Updates an existing CaConnectorConfig.
-
-
-
Constructor Detail
-
CAConnectorConfigViewResource
public CAConnectorConfigViewResource(CAConnectorConfigService cAConnectorConfigService, CaConnectorConfigUtil caConnectorConfigUtil)
-
-
Method Detail
-
createPipeline
@PostMapping("/ca-connector-configViews") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<CaConnectorConfigView> createPipeline(@Valid @RequestBody @Valid CaConnectorConfigView caConnectorConfigView) throws URISyntaxExceptionPOST /pipelineViews: Create a new CAConnectorConfig.- Parameters:
caConnectorConfigView- the CaConnectorConfigView to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new pipeline, or with status400 (Bad Request)if the pipeline has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updatePipeline
@PutMapping("/ca-connector-configViews") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<CaConnectorConfigView> updatePipeline(@Valid @RequestBody @Valid CaConnectorConfigView caConnectorConfigView) throws URISyntaxExceptionPUT /ca-connector-configViews: Updates an existing CaConnectorConfig.- Parameters:
caConnectorConfigView- the pipeline to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated CaConnectorConfig, or with status400 (Bad Request)if the CaConnectorConfig is not valid, or with status500 (Internal Server Error)if the CaConnectorConfig couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllCaConnectorConfigs
@GetMapping("/ca-connector-configViews") public List<CaConnectorConfigView> getAllCaConnectorConfigs()GET /ca-connector-configViews: get all the CaConnectorConfigs.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of CaConnectorConfigViews in body.
-
getCaConnectorConfig
@GetMapping("/ca-connector-configViews/{id}") public org.springframework.http.ResponseEntity<CaConnectorConfigView> getCaConnectorConfig(@PathVariable Long id)GET /ca-connector-configViews/:id: get the "id" CaConnectorConfigView.- Parameters:
id- the id of the CaConnectorConfigView to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the pipeline, or with status404 (Not Found).
-
deleteCaConnectorConfig
@DeleteMapping("/ca-connector-configViews/{id}") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<Void> deleteCaConnectorConfig(@PathVariable Long id)DELETE /ca-connector-configViews/:id: delete the "id" CaConnectorConfigView.- Parameters:
id- the id of the CaConnectorConfig to delete.- Returns:
- the
ResponseEntitywith status204 (NO_CONTENT).
-
-