@RestController
@RequestMapping(value="/api")
public class EntityWithServiceImplResource
extends java.lang.Object
Constructor and Description |
---|
EntityWithServiceImplResource(EntityWithServiceImplService entityWithServiceImplService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<EntityWithServiceImpl> |
createEntityWithServiceImpl(EntityWithServiceImpl entityWithServiceImpl)
POST /entity-with-service-impls : Create a new entityWithServiceImpl.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithServiceImpl(java.lang.Long id)
DELETE /entity-with-service-impls/:id : delete the "id" entityWithServiceImpl.
|
java.util.List<EntityWithServiceImpl> |
getAllEntityWithServiceImpls()
GET /entity-with-service-impls : get all the entityWithServiceImpls.
|
org.springframework.http.ResponseEntity<EntityWithServiceImpl> |
getEntityWithServiceImpl(java.lang.Long id)
GET /entity-with-service-impls/:id : get the "id" entityWithServiceImpl.
|
org.springframework.http.ResponseEntity<EntityWithServiceImpl> |
updateEntityWithServiceImpl(EntityWithServiceImpl entityWithServiceImpl)
PUT /entity-with-service-impls : Updates an existing entityWithServiceImpl.
|
public EntityWithServiceImplResource(EntityWithServiceImplService entityWithServiceImplService)
@PostMapping(value="/entity-with-service-impls") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceImpl> createEntityWithServiceImpl(@RequestBody EntityWithServiceImpl entityWithServiceImpl) throws java.net.URISyntaxException
entityWithServiceImpl
- the entityWithServiceImpl to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/entity-with-service-impls") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceImpl> updateEntityWithServiceImpl(@RequestBody EntityWithServiceImpl entityWithServiceImpl) throws java.net.URISyntaxException
entityWithServiceImpl
- the entityWithServiceImpl to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/entity-with-service-impls") @Timed public java.util.List<EntityWithServiceImpl> getAllEntityWithServiceImpls()
@GetMapping(value="/entity-with-service-impls/{id}") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceImpl> getEntityWithServiceImpl(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceImpl to retrieve@DeleteMapping(value="/entity-with-service-impls/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithServiceImpl(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceImpl to deleteCopyright © 2017 Osgiliath. All rights reserved.