@RestController
@RequestMapping(value="/api")
public class FieldTestMapstructEntityResource
extends java.lang.Object
Constructor and Description |
---|
FieldTestMapstructEntityResource(FieldTestMapstructEntityRepository fieldTestMapstructEntityRepository,
FieldTestMapstructEntityMapper fieldTestMapstructEntityMapper) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<FieldTestMapstructEntityDTO> |
createFieldTestMapstructEntity(FieldTestMapstructEntityDTO fieldTestMapstructEntityDTO)
POST /field-test-mapstruct-entities : Create a new fieldTestMapstructEntity.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteFieldTestMapstructEntity(java.lang.Long id)
DELETE /field-test-mapstruct-entities/:id : delete the "id" fieldTestMapstructEntity.
|
java.util.List<FieldTestMapstructEntityDTO> |
getAllFieldTestMapstructEntities()
GET /field-test-mapstruct-entities : get all the fieldTestMapstructEntities.
|
org.springframework.http.ResponseEntity<FieldTestMapstructEntityDTO> |
getFieldTestMapstructEntity(java.lang.Long id)
GET /field-test-mapstruct-entities/:id : get the "id" fieldTestMapstructEntity.
|
org.springframework.http.ResponseEntity<FieldTestMapstructEntityDTO> |
updateFieldTestMapstructEntity(FieldTestMapstructEntityDTO fieldTestMapstructEntityDTO)
PUT /field-test-mapstruct-entities : Updates an existing fieldTestMapstructEntity.
|
public FieldTestMapstructEntityResource(FieldTestMapstructEntityRepository fieldTestMapstructEntityRepository, FieldTestMapstructEntityMapper fieldTestMapstructEntityMapper)
@PostMapping(value="/field-test-mapstruct-entities") @Timed public org.springframework.http.ResponseEntity<FieldTestMapstructEntityDTO> createFieldTestMapstructEntity(@RequestBody FieldTestMapstructEntityDTO fieldTestMapstructEntityDTO) throws java.net.URISyntaxException
fieldTestMapstructEntityDTO
- the fieldTestMapstructEntityDTO to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/field-test-mapstruct-entities") @Timed public org.springframework.http.ResponseEntity<FieldTestMapstructEntityDTO> updateFieldTestMapstructEntity(@RequestBody FieldTestMapstructEntityDTO fieldTestMapstructEntityDTO) throws java.net.URISyntaxException
fieldTestMapstructEntityDTO
- the fieldTestMapstructEntityDTO to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/field-test-mapstruct-entities") @Timed public java.util.List<FieldTestMapstructEntityDTO> getAllFieldTestMapstructEntities()
@GetMapping(value="/field-test-mapstruct-entities/{id}") @Timed public org.springframework.http.ResponseEntity<FieldTestMapstructEntityDTO> getFieldTestMapstructEntity(@PathVariable java.lang.Long id)
id
- the id of the fieldTestMapstructEntityDTO to retrieve@DeleteMapping(value="/field-test-mapstruct-entities/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteFieldTestMapstructEntity(@PathVariable java.lang.Long id)
id
- the id of the fieldTestMapstructEntityDTO to deleteCopyright © 2017 Osgiliath. All rights reserved.