Package de.trustable.ca3s.core.web.rest
Class RDNAttributeResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.RDNAttributeResource
-
@RestController @RequestMapping("/api") public class RDNAttributeResource extends ObjectREST controller for managingRDNAttribute.
-
-
Constructor Summary
Constructors Constructor Description RDNAttributeResource(RDNAttributeService rDNAttributeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<RDNAttribute>createRDNAttribute(@Valid RDNAttribute rDNAttribute)POST /rdn-attributes: Create a new rDNAttribute.org.springframework.http.ResponseEntity<Void>deleteRDNAttribute(Long id)DELETE /rdn-attributes/:id: delete the "id" rDNAttribute.List<RDNAttribute>getAllRDNAttributes()GET /rdn-attributes: get all the rDNAttributes.org.springframework.http.ResponseEntity<RDNAttribute>getRDNAttribute(Long id)GET /rdn-attributes/:id: get the "id" rDNAttribute.org.springframework.http.ResponseEntity<RDNAttribute>updateRDNAttribute(@Valid RDNAttribute rDNAttribute)PUT /rdn-attributes: Updates an existing rDNAttribute.
-
-
-
Constructor Detail
-
RDNAttributeResource
public RDNAttributeResource(RDNAttributeService rDNAttributeService)
-
-
Method Detail
-
createRDNAttribute
@PostMapping("/rdn-attributes") public org.springframework.http.ResponseEntity<RDNAttribute> createRDNAttribute(@Valid @RequestBody @Valid RDNAttribute rDNAttribute) throws URISyntaxExceptionPOST /rdn-attributes: Create a new rDNAttribute.- Parameters:
rDNAttribute- the rDNAttribute to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new rDNAttribute, or with status400 (Bad Request)if the rDNAttribute has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updateRDNAttribute
@PutMapping("/rdn-attributes") public org.springframework.http.ResponseEntity<RDNAttribute> updateRDNAttribute(@Valid @RequestBody @Valid RDNAttribute rDNAttribute) throws URISyntaxExceptionPUT /rdn-attributes: Updates an existing rDNAttribute.- Parameters:
rDNAttribute- the rDNAttribute to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated rDNAttribute, or with status400 (Bad Request)if the rDNAttribute is not valid, or with status500 (Internal Server Error)if the rDNAttribute couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllRDNAttributes
@GetMapping("/rdn-attributes") public List<RDNAttribute> getAllRDNAttributes()GET /rdn-attributes: get all the rDNAttributes.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of rDNAttributes in body.
-
getRDNAttribute
@GetMapping("/rdn-attributes/{id}") public org.springframework.http.ResponseEntity<RDNAttribute> getRDNAttribute(@PathVariable Long id)GET /rdn-attributes/:id: get the "id" rDNAttribute.- Parameters:
id- the id of the rDNAttribute to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the rDNAttribute, or with status404 (Not Found).
-
deleteRDNAttribute
@DeleteMapping("/rdn-attributes/{id}") public org.springframework.http.ResponseEntity<Void> deleteRDNAttribute(@PathVariable Long id)DELETE /rdn-attributes/:id: delete the "id" rDNAttribute.- Parameters:
id- the id of the rDNAttribute to delete.- Returns:
- the
ResponseEntitywith status204 (NO_CONTENT).
-
-